You are here

function cacheexclude_menu in CacheExclude 5.2

Same name and namespace in other branches
  1. 5 cacheexclude.module \cacheexclude_menu()
  2. 6.2 cacheexclude.module \cacheexclude_menu()
  3. 7.2 cacheexclude.module \cacheexclude_menu()

File

./cacheexclude.module, line 3

Code

function cacheexclude_menu($may_cache) {
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/cacheexclude',
      'title' => t('Cache exclusions'),
      'description' => t('Configure pages to exclude from caching.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'cacheexclude_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}