1
2
3
4
5
6
7
8
9
function _phptemplate_variables($hook, $variables) {
  switch ($hook) {
    case 'page':
      if (isset($variables['node'])) {
        $variables['template_file'] = 'page_'. $variables['node']->type;
      }
    break;
  }
}