[development] From Michelle: Request to themers.

Michelle Cox mcox at charter.net
Sun Dec 16 14:11:01 UTC 2007


On 12/16/2007 4:57:26 AM, John Morahan (john.morahan at gmail.com) wrote:
> Why not have them rename the original to, say,
> _phptemplate_variables_original(), and then add a new
> _phptemplate_variables() that calls the original and adds more stuff to
> it?  That way you get the
> original's variables no matter how it returns
> them.
>
> function _phptemplate_variables($hook, $vars) {
> $vars = array();
> if (function_exists('_phptemplate_variables_original')) {
> $vars = _phptemplate_variables_original($hook, $vars);
> }
> if (module_exists('advanced_forum')) {
> $vars = advanced_forum_addvars($hook, $vars);
> }
> return $vars;
> }
>
> -john

Now that is a _great_ idea! I'll put that down in the readme as an option if 
they aren't able to do the merge. Thanks!

Michelle




More information about the development mailing list