doubei8541 2013-09-24 14:51
浏览 17
已采纳

在drupal中添加字段到屏幕“新内容类型”

I have a drupal app and I want to have a field as checkbox, so, when I create/edit a content type, it appears like the title and the description, and if I check it, all of the nodes with that type will have that field checked. Some ideas? Thank you in advance

  • 写回答

1条回答 默认 最新

  • douzhi4830 2013-09-25 05:26
    关注

    Please go to the form where you want to add the field.

    View source, you will get form_id there.

    Get the form_id to use in one of the following form alter hooks.

    Alter the form using hook_form_alter or hook_form_FORM_ID_alter

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?