function prod_check_menu in Production check & Production monitor 6
Same name and namespace in other branches
- 7 prod_check.module \prod_check_menu()
Implementation of hook_menu()
File
- ./
prod_check.module, line 72
Code
function prod_check_menu() {
$items = array();
$admin_defaults = array(
'access arguments' => array(
'access production check',
),
'type' => MENU_CALLBACK,
'file' => 'includes/prod_check.admin.inc',
);
$items['admin/reports/prod-check'] = array(
'title' => 'Production check',
'description' => 'View the Production check report page.',
'page callback' => 'prod_check_status',
'access arguments' => array(
'access production check',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'includes/prod_check.admin.inc',
);
// Default tab (callback for this is it's parent path).
$items['admin/reports/prod-check/status'] = array(
'title' => 'Status',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['admin/reports/prod-check/prod-mode'] = array(
'title' => 'Production mode',
'description' => 'Setup this site so it is ready for production.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'prod_check_prod_mode_form',
),
'access arguments' => array(
'switch to production mode',
),
'type' => MENU_LOCAL_TASK,
'file' => 'includes/prod_check.admin.inc',
'weight' => 1,
);
$items['admin/settings/prod-check'] = array(
'title' => 'Production check',
'description' => 'Setup the Production check module.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'prod_check_settings_form',
),
'access arguments' => array(
'administer production check',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'includes/prod_check.admin.inc',
);
$items['admin/settings/prod-check/xmlrpc'] = array(
'title' => 'Production check Xmlrpc settings',
'page callback' => 'prod_check_enable_xmlrpc',
) + $admin_defaults;
$items['admin/settings/prod-check/nagios'] = array(
'title' => 'Production check Nagios settings',
'page callback' => 'prod_check_enable_nagios',
) + $admin_defaults;
$items['admin/reports/status/database'] = array(
'title' => 'Database',
'page callback' => 'prod_check_dbstatus',
) + $admin_defaults;
$items['admin/reports/status/apc-opc'] = array(
'title' => 'APC/OPcache',
'page callback' => 'prod_check_apc_opc',
) + $admin_defaults;
$items['admin/reports/status/memcache'] = array(
'title' => 'Memcache',
'page callback' => 'prod_check_memcache',
) + $admin_defaults;
return $items;
}