function _rotor_setup_js in Rotor Banner 6
Same name and namespace in other branches
- 5 rotor.module \_rotor_setup_js()
Add required js files.
1 call to _rotor_setup_js()
- rotor_block_content in ./
rotor.module - Returns the block content.
File
- ./
rotor.module, line 667 - A rotor banner consists in a set of images that will be changing. This module is made using jquery.
Code
function _rotor_setup_js() {
$settings = array(
'RotorBanner' => array(),
);
$settings['RotorBanner']['enabled'] = 'true';
$settings['RotorBanner']['effect'] = variable_get('rotor_effect', 'fade');
$settings['RotorBanner']['time'] = variable_get('rotor_seconds', 10);
$settings['RotorBanner']['speed'] = variable_get('rotor_speed', 1) == 0 ? 1 : variable_get('rotor_speed', 1) * 1000;
$settings['RotorBanner']['pause'] = variable_get('rotor_pause', 0);
drupal_add_js($settings, 'setting');
drupal_add_js(drupal_get_path('module', 'rotor') . '/rotor.js');
jquery_plugin_add('cycle');
}