You are here

function prev_next_menu in Previous/Next API 6

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

Implementation of hook_menu().

File

./prev_next.module, line 14

Code

function prev_next_menu() {
  $items['admin/settings/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(
      'access administration pages',
    ),
  );
  $items['admin/settings/prev_next/general'] = array(
    'title' => 'General',
    'weight' => 0,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/settings/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(
      'access administration pages',
    ),
  );
  return $items;
}