drupal alter node 编辑表单 [英] drupal alter node edit form

查看:16
本文介绍了drupal alter node 编辑表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在创作信息下方的节点编辑表单中添加自定义配置区域发布选项部分?

How can I add a custom configuration area to a node edit form just beneath the Authoring Information & Publishing Options section?

推荐答案

以下代码生成附图中的最后一个菜单:

The follow code generates the last menu in the attached image:

    $form['barclays_epdq'] = array(
        '#type' => 'fieldset',
        '#access' => TRUE,
        '#title' => 'Barclays ePDQ',
        '#collapsible' => TRUE,
        '#collapsed' => TRUE,
        '#group' => 'additional_settings',
        '#weight' => 100,
        'barclays_epdq_active' => array(
            '#type' => 'checkbox',
            '#title' => 'Enable this webform to send users to your Barclays ePDQ store to make a payment',
            '#default_value' => $active_state,
        ),
    );

ps:表单在 hook_form_alter 中

ps: the form is in hook_form_alter

这篇关于drupal alter node 编辑表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆