function _rotor_doheader in Rotor Banner 6.2
Same name and namespace in other branches
- 7 rotor.module \_rotor_doheader()
Add required js and css as appropriate.
1 call to _rotor_doheader()
- rotor_views_post_render in ./
rotor.module - Implementation of hook_views_post_render().
File
- ./
rotor.module, line 397 - A rotor banner consists in a set of images that will be changing. This module is made using jquery.
Code
function _rotor_doheader() {
static $rotor_initialized = FALSE;
if ($rotor_initialized) {
return;
}
$rotor_path = drupal_get_path('module', 'rotor');
drupal_add_css($rotor_path . '/rotor.css');
drupal_add_js($rotor_path . '/rotor.js');
jquery_plugin_add('cycle');
// $styles_ie6 = ".rotor-content {background-color:#FFFFFF;}";
// drupal_set_html_head('<!--[if lte IE 7]><style type="text/css" media="all">'. $styles_ie6 .'</style><![endif]-->');
$rotor_initialized = TRUE;
}