开发者

Where to place hooks in Drupal?

开发者 https://www.devze.com 2022-12-21 19:46 出处:网络
Please, I can\'t use hooks in Drupal, because I don\'t know where to place them. I tried to place in template开发者_运维问答.php, unsuccessfull.

Please,

I can't use hooks in Drupal, because I don't know where to place them. I tried to place in template开发者_运维问答.php, unsuccessfull.

This is the hook which I want to use: http://api.drupal.org/api/function/hook_form_FORM_ID_alter/6


You would call this hook from within a custom module. For example, let's say you wrote a custom module, named bookmark. That module would contain a file named, bookmark.module. From within bookmark.module, you would call bookmark_form_FORM_ID_alter($form, $formstate)

0

精彩评论

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

关注公众号