/[drupal]/contributions/modules/cache_browser/cache_browser.module
ViewVC logotype

Contents of /contributions/modules/cache_browser/cache_browser.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Sep 15 02:55:44 2008 UTC (14 months, 1 week ago) by markuspetrux
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
- Initial commit for the cache_browser project.
1 <?php
2 // $Id$
3
4 /**
5 * @file
6 * Cache browser module.
7 */
8
9 define('CACHE_BROWSER_PAGE_PATH', 'admin/build/cache_browser');
10 define('CACHE_BROWSER_ITEMS_PER_PAGE', 50);
11 define('CACHE_BROWSER_MAX_CID_LENGTH', 60);
12 define('CACHE_BROWSER_DECIMAL_POINT', '.');
13 define('CACHE_BROWSER_THOUSANDS_SEP', ',');
14
15 /**
16 * Implementation of hook_help().
17 */
18 function cache_browser_help($path, $arg) {
19 switch ($path) {
20 case 'admin/settings/cache_browser':
21 return t('This module allows authorized users browse, dump and reset the content of Drupal cache tables.');
22 }
23 }
24
25 /**
26 * Implementation of hook_perm().
27 */
28 function cache_browser_perm() {
29 return array('administer cache tables');
30 }
31
32 /**
33 * Implementation of hook_menu().
34 */
35 function cache_browser_menu() {
36 $items = array();
37 $items[CACHE_BROWSER_PAGE_PATH] = array(
38 'title' => 'Cache browser',
39 'page callback' => 'cache_browser_page',
40 'access arguments' => array('administer cache tables'),
41 'file' => 'cache_browser.pages.inc',
42 'type' => MENU_NORMAL_ITEM,
43 );
44 return $items;
45 }
46
47 /**
48 * Implementation of hook_theme()
49 */
50 function cache_browser_theme() {
51 return array(
52 'cache_browser_page_header' => array(
53 'arguments' => array('page_header_info' => NULL)
54 ),
55 );
56 }

  ViewVC Help
Powered by ViewVC 1.1.2