function dhtml_menu_init in DHTML Menu 6.3
Same name and namespace in other branches
- 8 dhtml_menu.module \dhtml_menu_init()
- 6.4 dhtml_menu.module \dhtml_menu_init()
- 7 dhtml_menu.module \dhtml_menu_init()
Implementation of hook_init(). Adds CSS, Javascript and settings to the page.
File
- ./
dhtml_menu.module, line 19 - dhtml_menu.module Adds preprocessors to the menu theming functions that will add dynamic expansion to their menus.
Code
function dhtml_menu_init() {
drupal_add_css(drupal_get_path('module', 'dhtml_menu') . '/dhtml_menu.css');
drupal_add_js(drupal_get_path('module', 'dhtml_menu') . '/dhtml_menu.js');
$settings = variable_get('dhtml_menu_effects', unserialize(DHTML_MENU_DEFAULT));
drupal_add_js(array(
'dhtmlMenu' => $settings,
), 'setting');
}