You are here

function coder_menu in Coder 6

Same name and namespace in other branches
  1. 5.2 coder.module \coder_menu()
  2. 5 coder.module \coder_menu()
  3. 6.2 coder.module \coder_menu()
  4. 7.2 coder.module \coder_menu()
  5. 7 coder.module \coder_menu()

Implementation of hook_menu().

File

./coder.module, line 81
Developer Module that assists with code review and version upgrade that supports a plug-in extensible hook system so contributed modules can define additional review standards.

Code

function coder_menu() {
  $items = array();
  $items['coder'] = array(
    'title' => 'Code review',
    'page callback' => 'coder_page',
    'access arguments' => array(
      'view code review',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['coder/settings'] = array(
    'title' => 'Selection form',
    'page callback' => 'coder_page',
    'access arguments' => array(
      'view code review',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -2,
  );
  $items['coder/default'] = array(
    'title' => 'Default',
    'page callback' => 'coder_page',
    'access arguments' => array(
      'view code review',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => -1,
  );
  $items['coder/core'] = array(
    'title' => 'Core',
    'page callback' => 'coder_page',
    'access arguments' => array(
      'view code review',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['coder/active'] = array(
    'title' => 'Active',
    'page callback' => 'coder_page',
    'access arguments' => array(
      'view code review',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['coder/all'] = array(
    'title' => 'All',
    'page callback' => 'coder_page',
    'access arguments' => array(
      'view code review all',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  $items['coder/patches'] = array(
    'title' => 'Patches',
    'page callback' => 'coder_page',
    'access arguments' => array(
      'view code review',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/settings/coder'] = array(
    'title' => 'Code review',
    'description' => 'Select code review plugins and modules',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'coder_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $items;
}