Search code examples
drupal-7

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


I've noticed 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


Solution

  • 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.