You are here

function environment_menu in Environment 6

Same name and namespace in other branches
  1. 7 environment.module \environment_menu()

Implementation of hook_menu().

File

./environment.module, line 29

Code

function environment_menu() {
  $items = array();
  $items['admin/settings/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/settings/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;
}