You are here

function formtips_init in Form Tips 6

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

Implements hook_init().

File

./formtips.module, line 16
Form tips module uses JS to move form descriptions to tooltips.

Code

function formtips_init() {
  $module_path = drupal_get_path('module', 'formtips');
  if (variable_get('formtips_hoverintent', 1)) {
    drupal_add_js($module_path . '/hoverintent.minified.js');
  }
  drupal_add_js($module_path . '/formtips.js');
  drupal_add_css($module_path . '/formtips.css');
  drupal_add_js(formtips_js_settings(), 'setting');
}