[development] Eliminate hooks entirely in Drupal 6
Moshe Weitzman
weitzman at tejasa.com
Wed Jan 24 01:56:05 UTC 2007
> The way I see the future of hooks:
>
> a) hook_define_hooks, herein you can define hooks.
>
> b) on module enable time, Drupal scans your module for hooks and registers them for you -- this would merely be a cached version of module_implements. But, if you want, you can register for yourself. You could define whether you want to come before or after other module's implementation (see weights.php in my sandbox for an implementation of this -- THAT is prior art :) ) and now with Merlin's idea you could define files as well. Yes, files, it needs to be an array for what I believe, obvious reasons.
>
> This way if you do
This is just perfect.
More information about the development
mailing list