I am trying to add JavaScript and CSS files to one node type page from my template.php file but it is not working. Here is my template.php code:
<?php
// $Id: template.php,v 1.13 2010/12/14 01:04:27 dries Exp $
function mttheme_preprocess_html(&$variables) {
$node = node_load(arg(1));
if ($node->type = 'sales_team_page') {
drupal_add_css('misc/jquery.fancybox-1.3.4.css');
drupal_add_js('misc/jquery.mousewheel-3.0.4.pack.js',
array('type' => 'file', 'scope' => 'header')
);
drupal_add_js('misc/jquery.fancybox-1.3.4.pack.js',
array('type' => 'file', 'scope' => 'header')
);
drupal_add_js('misc/jquery.fancybox-calls.js',
array('type' => 'file', 'scope' => 'header')
);
}
}
Does anyone know why it is not working?