You are here

function smart_paging_menu in Smart Paging 7

Same name and namespace in other branches
  1. 7.2 smart_paging.module \smart_paging_menu()

Implements hook_menu().

Called when Drupal is building menus. Cache parameter lets module know if Drupal intends to cache menu or not - different results may be returned for either case.

Return value

An array with the menu path, callback, and parameters.

File

./smart_paging.module, line 32
Provides smart paging capability to Drupal contents.

Code

function smart_paging_menu() {
  $items = array();
  $items['admin/config/content/smart_paging'] = array(
    'title' => 'Smart Paging',
    'description' => 'Configure Smart Paging default settings',
    'access arguments' => array(
      'administer smart_paging',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'smart_paging_admin_settings',
    ),
    'file' => 'includes/smart_paging.admin.inc',
    'weight' => 2,
  );
  return $items;
}