开发者

How to alter block configuration form in Drupal 7?

How can I alter block configurations in Drupal 7?

There are some hooks like hook_block_info_alter() and hook_block_view_alter() but it seems there is not anything name开发者_运维知识库d "hook_block_configure_alter".

Is hook_form_alter() the only solution?


Yes, you should use hook_form_alter() or hook_form_FORM_ID_alter(). If you are making changes specific to a single form, the latter should be used. A good description of the two hooks can be found HERE.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜