开发者

Drupal 7: Hooks added after module is enabled are not called

I've no开发者_JAVA百科ticed that if I added new hook to a module after the module has been enabled, the new hooks are not called.

I am trying to add hook_node_view, to control view of a content type from my module, I am using the base name of the content type I am addressing lesson_node_view

Can some please explain to me ? and how to solve this issue ??

Thanks


Flush your cache, module_implements is cached. admin/config/development/performance has a Clear all caches button. See the Suppress caching (for development) for a way to avoid this and other problems during development.


When writing your *.module file make sure not to use "namespace". The namespace cause hooks not to be recognized. A utility code however may use a namespace.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜