function hook_royalslider_settings_alter in RoyalSlider Integration 7
Implements hook_royalslider_settings_alter().
Alter the RoyalSlider settings before being added to the browser.
Parameters
array: An array of settings to be added via drupal_add_js().
string: The royalslider instance ID.
object: The royalslider_optionset object used to build these settings.
1 invocation of hook_royalslider_settings_alter()
- royalslider_add in ./
royalslider.module - This function loads the required JavaScripts and settings for a RoyalSlider instance.
File
- ./
royalslider.api.php, line 19 - API Documentation for RoyalSlider module.
Code
function hook_royalslider_settings_alter(&$settings, $id, $optionset) {
if ($id = 'baz' && $optionset->name === 'foo') {
$settings['bar'] = 'baz';
}
}