function nagios_menu in Nagios Monitoring 6
Same name and namespace in other branches
- 5 nagios.module \nagios_menu()
- 7 nagios.module \nagios_menu()
Implementation of hook_menu
File
- ./
nagios.module, line 59
Code
function nagios_menu() {
$items = array();
$items['admin/settings/nagios'] = array(
'type' => MENU_NORMAL_ITEM,
'title' => t('Nagios monitoring'),
'description' => t('Settings for Nagios monitoring'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nagios_settings',
),
'access arguments' => array(
'administer site configuration',
),
);
$items['nagios'] = array(
'type' => MENU_SUGGESTED_ITEM,
'title' => t('Nagios status page'),
'page callback' => 'nagios_status_page',
'access callback' => 'variable_get',
'access arguments' => array(
'nagios_enable_status_page',
TRUE,
),
);
return $items;
}