function coder_review_menu in Coder 7
Same name and namespace in other branches
- 7.2 coder_review/coder_review.module \coder_review_menu()
Implements hook_menu().
File
- coder_review/
coder_review.module, line 109
Code
function coder_review_menu() {
$items['admin/config/development/coder/review'] = array(
'title' => 'Review',
'page callback' => 'coder_review_page',
'access arguments' => array(
'view code review',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -2,
);
$items['admin/config/development/coder/review/select'] = array(
'title' => 'Select',
'page callback' => 'coder_review_page',
'access arguments' => array(
'view code review',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -2,
);
$items['admin/config/development/coder/review/default'] = array(
'title' => 'Default',
'page callback' => 'coder_review_page',
'page arguments' => array(
'default',
),
'access arguments' => array(
'view code review',
),
'type' => MENU_LOCAL_TASK,
'weight' => -1,
);
$items['admin/config/development/coder/review/core'] = array(
'title' => 'Core',
'page callback' => 'coder_review_page',
'page arguments' => array(
'core',
),
'access arguments' => array(
'view code review',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/development/coder/review/active'] = array(
'title' => 'Active',
'page callback' => 'coder_review_page',
'page arguments' => array(
'active',
),
'access arguments' => array(
'view code review',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/development/coder/review/all'] = array(
'title' => 'All',
'page callback' => 'coder_review_page',
'page arguments' => array(
'all',
),
'access arguments' => array(
'view code review all',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/config/development/coder/review/files'] = array(
'title' => 'Files',
'page callback' => 'coder_review_page',
'page arguments' => array(
'files',
),
'access arguments' => array(
'view code review',
),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
$items['admin/config/development/coder/review/patches'] = array(
'title' => 'Patches',
'page callback' => 'coder_review_page',
'page arguments' => array(
'patches',
),
'access arguments' => array(
'view code review',
),
'type' => MENU_LOCAL_TASK,
'weight' => 3,
);
$items['admin/config/development/coder/review/settings'] = array(
'title' => 'Settings',
'description' => 'Select code review plugins and modules',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'coder_review_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 3,
);
return $items;
}