function newsflash_preprocess_page(&$variables) { if ($variables['node']->type == "static") { $variables['template_files'][] = 'page-node-static'; } elseif ($variables['node']->type == "news") { $variables['template_files'][] = 'page-node-news'; } elseif ($variables['node']->type == "codes") { $variables['template_files'][] = 'page-node-codes'; } elseif ($variables['node']->type == "jokes") { $variables['template_files'][] = 'page-node-jokes'; } }