Question about phptemplate_variables
c-c-m - June 8, 2008 - 14:14
| Project: | PHPTemplate |
| Version: | HEAD |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I've been reading this node (Primary links menu active trail - yet another method) and have replaced phptemplate_variables accordingly. The problem is that now $tabs2 don't come up. Could anybody tell me how to implement $tabs2 in this function?:
<?php
function _phptemplate_variables($hook, $vars = array()) {
switch ($hook) {
case 'page':
// reset primary & secondary to use our own function
$vars['primary_links'] = new_primary_links();
$vars['secondary_links'] = new_secondary_links();
break;
}
if (module_exists('advanced_forum')) {
$vars = advanced_forum_addvars($hook, $vars);
}
return $vars;
}
?>Thank you
