开发者

Drupal Best Practice for Settings on Content Type Edit Forms?

I've been curious what is the best practice to add custom settings to the admin/content/types (drupal 6.x)

Update: Jeremy has suggested (unsurprisingly) to use hook_form_alte开发者_高级运维r(). I'll try it out and report back.


That page is generated by the node_overview_types() function, it dosn't look like there is a way to hook into it. Without intercepting the output in the theme layer and messing with it (which I wouldn't advise).

If you want to add content type settings I would suggest you do a hook_form_alter() on the content type settings form. You can also use hook_node_type_form_alter() to access this form more easily. Have a look here for an example.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜