function itoggle_include_settings in iToggle 7
Same name and namespace in other branches
- 7.2 itoggle.module \itoggle_include_settings()
Helper function Adds itoggle settings to Drupal.settings
2 calls to itoggle_include_settings()
- itoggle_field_field_formatter_view in modules/
field/ itoggle_field.module - Implements hook_field_formatter_view().
- itoggle_views_handler_field::init in modules/
views/ itoggle_views_handler.inc - Init the handler with necessary data.
File
- includes/
itoggle.inc, line 23 - iToggle module include.
Code
function itoggle_include_settings() {
drupal_add_js(array(
'itoggle' => array(
'easing' => variable_get_value('itoggle_easing'),
'speed' => variable_get_value('itoggle_speed'),
'onclick' => variable_get_value('itoggle_onclick'),
'onclickon' => variable_get_value('itoggle_onclickon'),
'onclickoff' => variable_get_value('itoggle_onclickoff'),
'onslide' => variable_get_value('itoggle_onslide'),
'onslideon' => variable_get_value('itoggle_onslideon'),
'onslideoff' => variable_get_value('itoggle_onslideoff'),
'tokens' => array(),
),
), 'setting');
}