function environment_indicator_menu in Environment Indicator 7
Same name and namespace in other branches
- 8.2 environment_indicator.module \environment_indicator_menu()
- 6 environment_indicator.module \environment_indicator_menu()
- 7.2 environment_indicator.module \environment_indicator_menu()
Implement hook_menu().
File
- ./
environment_indicator.module, line 51 - 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/config/development/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',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'environment_indicator.admin.inc',
);
return $items;
}