You are here

function nagios_menu in Nagios Monitoring 5

Same name and namespace in other branches
  1. 6 nagios.module \nagios_menu()
  2. 7 nagios.module \nagios_menu()

Implementation of hook_menu

File

./nagios.module, line 54

Code

function nagios_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/nagios',
      'type' => MENU_NORMAL_ITEM,
      'title' => t('Nagios monitoring'),
      'description' => t('Settings for Nagios monitoring'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'nagios_settings',
      ),
      'access' => user_access('administer site configuration'),
    );
    $items[] = array(
      'path' => 'nagios',
      'type' => MENU_SUGGESTED_ITEM,
      'title' => t('Nagios status page'),
      'callback' => 'nagios_status_page',
      'access' => TRUE,
    );
  }
  return $items;
}