hello,

I use this fuction in template.php function _phptemplate_variables($hook, $vars = array()) {
if ($hook == 'page' && isset($_GET['pop']) && $_GET['pop']) {
$vars['template_file'] = 'page-popup';
}
return $vars;
}

to change a specific page but still it displays page.tpl he no longer sees this function and it does not execute.

Thx for help

Comments

kenneth.venken’s picture

Category: feature » support
Priority: Critical » Normal

Try the THEME_preprocess_page(&$variables) function: http://api.drupal.org/api/drupal/includes!theme.inc/function/theme/7. Replace THEME with the name of your theme and place the function in your template.php file.

Add your custom template file to $variables['theme_hook_suggestions']. See http://drupal.stackexchange.com/questions/1501/page-template-suggestions... for more info.

kenneth.venken’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.