You are here

function cleanpager_menu in Clean Pagination 5

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

Implementation of hook_menu()

File

./cleanpager.module, line 6

Code

function cleanpager_menu($may_cache) {
  $items = array();
  if (cleanpager_check_match()) {
    if (variable_get('cleanpager_use_seo_links', '') == 1) {
      drupal_add_js(drupal_get_path('module', 'cleanpager') . '/cleanpager.js');
    }
  }
  if ($may_cache == FALSE) {
    return false;
  }
  $items[] = array(
    'path' => 'admin/settings/cleanpage',
    'title' => t('Clean Pagination Settings'),
    'callback' => 'drupal_get_form',
    'callback arguments' => 'cleanpager_admin_settings',
    'access' => user_access('cleanpager administer'),
    'description' => t('Global configuration of Clean Pagination functionality.'),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}