function formtips_js_settings in Form Tips 6
Same name and namespace in other branches
- 5 formtips.module \formtips_js_settings()
- 6.2 formtips.module \formtips_js_settings()
- 7 formtips.module \formtips_js_settings()
Generates the JS settings array.
1 call to formtips_js_settings()
- formtips_init in ./
formtips.module - Implements hook_init().
File
- ./
formtips.module, line 31 - Form tips module uses JS to move form descriptions to tooltips.
Code
function formtips_js_settings() {
$selectors = explode("\r\n", variable_get('formtips_selectors', FORMTIPS_SELECTORS));
return array(
'formtips' => array(
'selectors' => $selectors,
'interval' => variable_get('formtips_interval', FORMTIPS_INTERVAL),
'sensitivity' => variable_get('formtips_sensitivity', FORMTIPS_SENSITIVITY),
'timeout' => variable_get('formtips_timeout', FORMTIPS_TIMEOUT),
'max_width' => variable_get('formtips_max_width', FORMTIPS_MAX_WIDTH),
'trigger_action' => variable_get('formtips_trigger_action', 'hover'),
),
);
}