function monitoring_menu in Monitoring 7
Implements hook_menu().
File
- ./
monitoring.module, line 198 - Monitoring bootstrap file.
Code
function monitoring_menu() {
$items['admin/config/system/monitoring'] = array(
'title' => 'Monitoring',
'description' => 'Manage sensors, configure enabled monitoring products.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'monitoring_config_sensors_overview_form',
),
'access arguments' => array(
'administer monitoring',
),
'file' => 'monitoring.admin.inc',
);
$items['admin/config/system/monitoring/sensors'] = array(
'title' => 'Sensors',
'description' => 'Configure all available sensors',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/system/monitoring/settings'] = array(
'title' => 'Monitoring settings',
'description' => 'Configure monitoring behaviour',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'monitoring_settings_form',
),
'access arguments' => array(
'administer monitoring',
),
'file' => 'monitoring.admin.inc',
'weight' => -9,
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/system/monitoring/sensors/%monitoring_sensor_info'] = array(
'title callback' => 'monitoring_sensor_action_title',
'title arguments' => array(
'settings',
5,
),
'description' => 'Monitoring sensor configuration',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'monitoring_sensor_settings_form',
5,
),
'access arguments' => array(
'administer monitoring',
),
'file' => 'monitoring.admin.inc',
'type' => MENU_VISIBLE_IN_BREADCRUMB,
'weight' => -10,
);
$items['admin/reports/monitoring'] = array(
'title' => 'Monitoring',
'description' => 'View sensor results and logs.',
'page callback' => 'monitoring_reports_sensors_overview',
'access arguments' => array(
'monitoring reports',
),
'file' => 'monitoring.admin.inc',
);
$items['admin/reports/monitoring/sensors'] = array(
'title' => 'Sensors',
'description' => 'Overview of all enabled monitoring sensors.',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/reports/monitoring/sensors/%monitoring_sensor_info'] = array(
'title callback' => 'monitoring_sensor_action_title',
'title arguments' => array(
'details',
4,
),
'description' => 'Details',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'monitoring_sensor_details',
4,
),
'access arguments' => array(
'monitoring reports',
),
'file' => 'monitoring.admin.inc',
);
$items['admin/reports/monitoring/sensors/%monitoring_sensor_info/details'] = array(
'title' => 'Details',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -16,
);
$items['monitoring/sensors/force'] = array(
'title' => 'Force run all sensors',
'page callback' => 'monitoring_force_execution',
'access arguments' => array(
'monitoring force run',
),
'file' => 'monitoring.admin.inc',
);
return $items;
}