function hierarchical_select_menu in Hierarchical Select 6.3
Same name and namespace in other branches
- 5.3 hierarchical_select.module \hierarchical_select_menu()
- 5 hierarchical_select.module \hierarchical_select_menu()
- 5.2 hierarchical_select.module \hierarchical_select_menu()
- 7.3 hierarchical_select.module \hierarchical_select_menu()
Implementation of hook_menu().
File
- ./
hierarchical_select.module, line 23 - This module defines the "hierarchical_select" form element, which is a greatly enhanced way for letting the user select items in a hierarchy.
Code
function hierarchical_select_menu() {
$items['hierarchical_select_json'] = array(
'page 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 callback' => TRUE,
);
$items['admin/settings/hierarchical_select'] = array(
'title' => 'Hierarchical Select',
'description' => 'Configure site-wide settings for the Hierarchical Select form element.',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'hierarchical_select_admin_settings',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'hierarchical_select.admin.inc',
);
$items['admin/settings/hierarchical_select/settings'] = array(
'title' => 'Site-wide settings',
'access arguments' => array(
'administer site configuration',
),
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'hierarchical_select.admin.inc',
);
$items['admin/settings/hierarchical_select/configs'] = array(
'title' => 'Configurations',
'description' => 'All available Hierarchical Select configurations.',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'hierarchical_select_admin_configs',
'type' => MENU_LOCAL_TASK,
'file' => 'hierarchical_select.admin.inc',
);
$items['admin/settings/hierarchical_select/implementations'] = array(
'title' => 'Implementations',
'description' => 'Features of each Hierarchical Select implementation.',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'hierarchical_select_admin_implementations',
'type' => MENU_LOCAL_TASK,
'file' => 'hierarchical_select.admin.inc',
);
$items['admin/settings/hierarchical_select/export/%hierarchical_select_config_id'] = array(
'title' => 'Export',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'hierarchical_select_admin_export',
4,
),
'type' => MENU_LOCAL_TASK,
'file' => 'hierarchical_select.admin.inc',
);
$items['admin/settings/hierarchical_select/import/%hierarchical_select_config_id'] = array(
'title' => 'Import',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'hierarchical_select_admin_import',
4,
),
'type' => MENU_LOCAL_TASK,
'file' => 'hierarchical_select.admin.inc',
);
return $items;
}