Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

drupal-7

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

like image 409
simo Avatar asked Feb 13 '11 07:02

simo


1 Answers

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.

like image 131
chx Avatar answered Oct 20 '22 15:10

chx