function activemenu_js in Javascript Tools 5
Menu callback. Output a themed menu tree for a requested menu item.
1 string reference to 'activemenu_js'
- activemenu_menu in activemenu/
activemenu.module - Implementation of hook_menu().
File
- activemenu/
activemenu.module, line 52 - Add AJAX-based tree menu to navigation menu.
Code
function activemenu_js() {
if ($path = activemenu_get_request_path()) {
$menu = menu_get_menu();
$pid = $menu['path index'][$path];
print drupal_to_js(array(
'status' => TRUE,
'content' => theme('menu_tree', $pid),
));
}
exit;
}