atr_menu

Versions
6.1
atr_menu()

Implementation of hook_menu().

Code

atr/atr.module, line 11

<?php
function atr_menu() {
  return array(
    'admin/settings/atr' => array(
      'title' => 'Automated Text Review',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('atr_form_settings'),
      'access arguments' => array('administer automated text review'),
      'file' => 'atr.admin.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
    ),
    'atr' => array(
      'title' => 'Automated Text Review',
      'page callback' => 'system_admin_menu_block_page',
      'access arguments' => array('access automated text review'),
      'file' => 'system.admin.inc',
      'file path' => drupal_get_path('module', 'system'),
    ),
    'atr/new-review' => array(
      'title' => 'New review',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('atr_form_review'),
      'access arguments' => array('execute text reviews'),
      'file' => 'atr.admin.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
    ),
    'atr/profile' => array(
      'title' => 'Settings profiles',
      'page callback' => 'atr_profile_list',
      'access arguments' => array('administer automated text review'),
      'file' => 'atr.admin.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
    ),
    'atr/profile/list' => array(
      'title' => 'List',
      'page callback' => 'atr_profile_list',
      'access arguments' => array('administer automated text review'),
      'file' => 'atr.admin.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
      'type' => MENU_DEFAULT_LOCAL_TASK,
    ),
    'atr/profile/add' => array(
      'title' => 'Add settings profile',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('atr_form_profile_add'),
      'access arguments' => array('administer automated text review'),
      'file' => 'atr.admin.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
      'type' => MENU_LOCAL_TASK,
      'weight' => 1,
    ),
    'atr/profile/%atr_profile/edit' => array(
      'title' => 'Edit settings profile',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('atr_form_profile', 2),
      'access arguments' => array('administer automated text review'),
      'file' => 'atr.admin.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
      'type' => MENU_CALLBACK,
      'weight' => 1,
    ),
    'atr/profile/%atr_profile/delete' => array(
      'title' => 'Delete settings profile',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('atr_form_profile_delete', 2),
      'access arguments' => array('administer automated text review'),
      'file' => 'atr.admin.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
      'type' => MENU_CALLBACK,
      'weight' => 1,
    ),
    'atr/review' => array(
      'title' => 'Reviews',
      'page callback' => 'atr_review_list',
      'access arguments' => array('access text review results'),
      'file' => 'atr.result.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
    ),
    'atr/review/%atr_review' => array(
      'title callback' => 'atr_review_title',
      'title arguments' => array(2),
      'page callback' => 'atr_review_result',
      'page arguments' => array(2),
      'access arguments' => array('access text review results'),
      'file' => 'atr.result.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
      'type' => MENU_CALLBACK,
    ),
    'atr/review/%atr_review/overview' => array(
      'title' => 'Results',
      'page callback' => 'atr_review_result',
      'page arguments' => array(2),
      'access arguments' => array('access text review results'),
      'file' => 'atr.result.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
      'type' => MENU_DEFAULT_LOCAL_TASK,
    ),
    'atr/review/%atr_review/delete' => array(
      'title' => 'Delete review',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('atr_form_review_delete', 2),
      'access arguments' => array('delete text review results'),
      'file' => 'atr.result.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
      'type' => MENU_LOCAL_TASK,
      'weight' => 1,
    ),
    'atr/review/%atr_review/%' => array(
      'page callback' => 'atr_review_method_result',
      'page arguments' => array(2, 3),
      'access arguments' => array('access text review results'),
      'file' => 'atr.result.inc',
      'file path' => drupal_get_path('module', 'atr') . '/includes',
      'type' => MENU_CALLBACK,
    ),
  );
}
?>