
Untitled
By: a guest on
May 2nd, 2012 | syntax:
PHP | size: 0.62 KB | hits: 14 | expires: Never
<?php
function amity_island_preprocess_page(&$vars, $hook) {
if (isset($vars['node'])) {
// If the node type is "blog" the template suggestion will be "page-blog.tpl.php".
$vars['template_files'][] = 'page-'. str_replace('_', '-', $vars['node']->type);
/* if($vars['node']->type == 'landingpage'){
drupal_add_css(drupal_get_path('theme', 'amity_island') . '/landingpage.css', 'theme');
$variables['styles'] = drupal_get_css();
} */
if ($variables['node']->type == 'landingpage') {
drupal_add_css(drupal_get_path('theme', 'amity_island') . "/landingpage.css");
}
}
}
?>