You are here

function jquerymenu_init in JQuery menu 7.3

Same name and namespace in other branches
  1. 7.4 jquerymenu.module \jquerymenu_init()

Implements of hook_init().

File

./jquerymenu.module, line 10
The jQuerymenu module parses hierarchical link arrays and renders them as click and expand menu blocks.

Code

function jquerymenu_init() {
  drupal_add_css(drupal_get_path('module', 'jquerymenu') . '/jquerymenu.css');
  $settings = array(
    'jquerymenu' => array(
      'hover' => variable_get('jquerymenu_hover', 0),
      'animate' => variable_get('jquerymenu_animate', 0),
      'edit_link' => variable_get('jquerymenu_edit_link', 0),
    ),
  );
  drupal_add_js($settings, 'setting');
  drupal_add_js(drupal_get_path('module', 'jquerymenu') . '/jquerymenu.js');
}