function environment_menu in Environment 7
Same name and namespace in other branches
- 6 environment.module \environment_menu()
Implements hook_menu().
File
- ./
environment.module, line 11 - Module for handling changes in server environments
Code
function environment_menu() {
$items = array();
$items['admin/config/system/environment'] = array(
'title' => 'Environment',
'description' => 'Settings for Environment.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'environment_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'environment.admin.inc',
);
$items['admin/config/system/environment/settings'] = array(
'title' => 'Environment',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/system/environment/switch/%environment'] = array(
'title' => 'Environment Switch',
'description' => 'Switch the current environment.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'environment_switch_confirm',
4,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'environment.admin.inc',
);
return $items;
}