You are here

function formtips_js_settings in Form Tips 5

Same name and namespace in other branches
  1. 6.2 formtips.module \formtips_js_settings()
  2. 6 formtips.module \formtips_js_settings()
  3. 7 formtips.module \formtips_js_settings()

Generates the JS settings array.

1 call to formtips_js_settings()
formtips_menu in ./formtips.module
Implements hook_menu().

File

./formtips.module, line 17
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'),
    ),
  );
}