You are here

function prev_next_menu in Previous/Next API 7.2

Same name and namespace in other branches
  1. 6 prev_next.module \prev_next_menu()
  2. 7 prev_next.module \prev_next_menu()

Implements hook_menu().

File

./prev_next.module, line 23
The previous next module indexes the previous and next nodes based upon user-selectable criteria and stores this index in the database for faster retrieval later.

Code

function prev_next_menu() {
  $items['admin/config/system/prev_next'] = array(
    'title' => 'Prev/Next',
    'description' => 'Prev/Next API for nodes',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'prev_next_admin',
    ),
    'access arguments' => array(
      'administer prev_next',
    ),
    'file' => 'prev_next.admin.inc',
    'file path' => drupal_get_path('module', 'prev_next'),
  );
  $items['admin/config/system/prev_next/re-index'] = array(
    //'type' => MENU_CALLBACK,
    'title' => 'Prev/Next reset',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'prev_next_reindex_confirm',
    ),
    'access arguments' => array(
      'administer prev_next',
    ),
    'file' => 'prev_next.admin.inc',
    'file path' => drupal_get_path('module', 'prev_next'),
  );
  return $items;
}