On Mon, May 19, 2008 at 12:46 PM, John Wilkins <<a href="mailto:drupal.user@albin.net">drupal.user@albin.net</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
HOOK_theme() fits the criteria you outlined, except for one item: "It takes no parameters." </blockquote><div><br>Many other hooks also have no args, module_invoke_all has been able to support 0-n args for a long time. This is a problem long since solve in php and in various parts of drupal already. func_get_args, call_user_func_array(), etc...<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">HOOK_theme() actually has 4 parameters that are essential for theme developers. Of course, HOOK_theme() is a special case since themes (and not just modules) can call that hook. (And, btw, themes can't call the corresponding HOOK_theme_registry_alter().)</blockquote>
<div><br>Themes can all call any hook. This is not a special case. Really you're going to have to explain, "themes can't call the corresponding HOOK_theme_registry_alter()". Why not?<br> </div></div><br>