Skip to content

Instantly share code, notes, and snippets.

@nhart
Created February 4, 2014 13:54
Show Gist options
  • Save nhart/8803932 to your computer and use it in GitHub Desktop.
Save nhart/8803932 to your computer and use it in GitHub Desktop.
function islandora_default_preprocess_page(&$vars) {
$front = (isset($vars['is_front']) ? $vars['is_front'] : FALSE);
$type = (isset($vars['node']->type) ? $vars['node']->type : NULL);
if(!$front) {
switch ($type) {
case 'collection':
case 'exhibit':
case 'formats':
case 'partners':
case 'places':
case 'multi':
$vars['theme_hook_suggestions'][] = 'page__two';
break;
default:
break;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment