Closed (fixed)
Project:
Page Title
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 May 2008 at 09:07 UTC
Updated:
5 May 2008 at 09:33 UTC
How's this for an idea -- we put the following code in a new file (lets call it template_variables.inc):
function hook_template_variables($hook, $vars) {
foreach (module_list(TRUE, TRUE) as $module) {
module_invoke($module, 'template_variables_', $vars);
module_invoke($module, 'template_variables_'. $hook, $vars);
}
}
Then, we ask people to call hook_template_variables from within the _php_variables function. Then various modules could implement functions; in our case, that'd be template_variables_page, which would do the necessary things.
This would also mean that advanced_forum could solve their problem too (see http://drupal.org/node/252967 ).
Then we could create an issue requesting that this be incorporated into the PHPTemplate engire part of core.
Comments
Comment #1
wayland76 commentedLooks like something equivalent has been done in 6.x
http://drupal.org/node/223430
Comment #2
wayland76 commented