You are here

function document_menu in Document 7

Same name and namespace in other branches
  1. 6 document.module \document_menu()
  2. 8.x document.module \document_menu()

Implementation of hook_menu().

File

./document.module, line 82

Code

function document_menu() {
  $items = array();
  $items['document'] = array(
    'title' => t('Documents'),
    'description' => t('Search & Download Documents.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'document_search_form',
      NULL,
    ),
    'access arguments' => array(
      'access document',
    ),
    'file' => 'document.search.inc',
  );
  $items['document/search'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'document_search',
    'access arguments' => array(
      'access document',
    ),
    'file' => 'document.callback.inc',
  );
  $items['document/change_doc_status'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'document_change_doc_status',
    'access arguments' => array(
      'moderate document',
    ),
    'file' => 'document.callback.inc',
  );
  $items['document/delete_doc'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'document_delete_doc',
    'access arguments' => array(
      'moderate document',
    ),
    'file' => 'document.callback.inc',
  );
  $items['admin/content/documents'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => t('Documents'),
    'description' => t('Moderate Documents.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'document_moderate_form',
      NULL,
    ),
    'access arguments' => array(
      'moderate document',
    ),
    'file' => 'document.admin.inc',
  );
  $items['admin/structure/document'] = array(
    'title' => t('Documents'),
    'description' => t('Administer Documents module.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'document_settings_form',
      NULL,
    ),
    'access arguments' => array(
      'administer document',
    ),
    'file' => 'document.admin.inc',
  );
  $items['document/add_type'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'document_add_type',
    'access arguments' => array(
      'administer document',
    ),
    'file' => 'document.callback.inc',
  );
  $items['document/delete_types'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'document_delete_types',
    'access arguments' => array(
      'administer document',
    ),
    'file' => 'document.callback.inc',
  );
  return $items;
}