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.
精彩评论