[development] Convention for naming contrib hooks?

Michael Favia michael at favias.org
Fri Oct 16 13:57:15 UTC 2009

On 10/16/2009 08:53 AM, Nancy Wichmann wrote:
> Earnie Boyd wrote
>> So I have a module foo implementing hook_foo_bar.  Module foo checks
>> for any implementation of hook_foo_bar by calling
>> module_invoke_all('foo_bar') in its foo_bar() function.
> It can look funny, though, if a module uses its own hook, which several of mine do. You can end up with "function foo_bar_foo_bar()".
I don't think it looks funny. In fact i appreciate when authors do this 
as it helps me implement the hook in my own modules and helps the 
developer keep in mind the needs of someone using the hooks. -mf

More information about the development mailing list