You are here

function panels_simple_cache_menu in Panels 5.2

Same name and namespace in other branches
  1. 6.2 panels_simple_cache/panels_simple_cache.module \panels_simple_cache_menu()

Implementation of hook_menu().

File

panels_simple_cache/panels_simple_cache.module, line 13
panels_simple_cache.module

Code

function panels_simple_cache_menu($may_cache) {
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/panels/simple-cache',
      'title' => t('Simple cache'),
      'access' => user_access('access administration pages') && user_access('use panels caching features'),
      'type' => MENU_NORMAL_ITEM,
      'callback' => 'panels_simple_cache_admin',
      'description' => t('Information about Panels simple cache.'),
    );
    return $items;
  }
}