function hierarchical_select_menu in Hierarchical Select 5.2
Same name and namespace in other branches
- 5.3 hierarchical_select.module \hierarchical_select_menu()
- 5 hierarchical_select.module \hierarchical_select_menu()
- 6.3 hierarchical_select.module \hierarchical_select_menu()
- 7.3 hierarchical_select.module \hierarchical_select_menu()
Implementation of hook_menu().
File
- ./
hierarchical_select.module, line 24 - This module defines the "hierarchical_select" form element, which is a greatly enhanced way for letting the user select an option in a hierarchy.
Code
function hierarchical_select_menu($may_cache) {
if (!$maycache) {
$items[] = array(
'path' => 'hierarchical_select_json',
'callback' => 'hierarchical_select_json',
'type' => MENU_CALLBACK,
// TODO: Needs improvements. Ideally, this would inherit the permissions
// of the form the Hierarchical Select was in.
'access' => user_access('access content'),
);
$items[] = array(
'path' => 'admin/settings/hierarchical_select',
'title' => t('Hierarchical Select'),
'description' => t('Configure site-wide settings for the Hierarchical Select form element.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'hierarchical_select_admin_settings',
),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}