You are here

function environment_indicator_menu in Environment Indicator 6

Same name and namespace in other branches
  1. 8.2 environment_indicator.module \environment_indicator_menu()
  2. 7.2 environment_indicator.module \environment_indicator_menu()
  3. 7 environment_indicator.module \environment_indicator_menu()

Implementation of hook_menu().

File

./environment_indicator.module, line 46
Adds a coloured strip to the side of the site informing the user which environment they are in (Development, Staging Production etc).

Code

function environment_indicator_menu() {
  $items['admin/settings/environment_indicator'] = array(
    'title' => 'Environment indicator',
    'description' => 'Adjust settings for the Environment Indicator.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'environment_indicator_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'environment_indicator.admin.inc',
  );
  return $items;
}