On Mon, May 19, 2008 at 12:46 PM, John Wilkins &lt;<a href="mailto:drupal.user@albin.net">drupal.user@albin.net</a>&gt; 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: &quot;It takes no parameters.&quot; </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>
&nbsp;<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&#39;t call the corresponding HOOK_theme_registry_alter().)</blockquote>
<div><br>Themes can all call any hook. This is not a special case.&nbsp; Really you&#39;re going to have to explain, &quot;themes can&#39;t call the corresponding HOOK_theme_registry_alter()&quot;. Why not?<br>&nbsp;</div></div><br>