function activemenu_load in Javascript Tools 5
Load needed files.
1 call to activemenu_load()
- activemenu_menu in activemenu/
activemenu.module - Implementation of hook_menu().
File
- activemenu/
activemenu.module, line 36 - Add AJAX-based tree menu to navigation menu.
Code
function activemenu_load() {
static $loaded = FALSE;
if (!$loaded) {
$path = drupal_get_path('module', 'activemenu');
jstools_add_js($path . '/activemenu.js');
$activemenu = module_invoke_all('activemenu');
if (count($activemenu)) {
drupal_add_js(array(
'activemenu' => $activemenu,
), 'setting');
}
$loaded = TRUE;
}
}