summaryrefslogtreecommitdiff
path: root/modules/admin.module
blob: 53804388df5fd8627964978b229dfe08ae3695cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
// $Id$

/**
 * @file
 * Handles the administration pages.
 */

/**
 * Implementation of hook_help().
 */
function admin_help($section) {
  switch ($section) {
    case 'admin/modules#description':
      return t('Handles the administration pages.');
    case 'admin':
      return t('<p>Welcome to the administration section. Below are the most recent system events.</p>');
  }
}

/**
 * Implementation of hook_menu().
 */
function admin_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array('path' => 'admin', 'title' => t('administer'),
      'access' => user_access('access administration pages'),
      'callback' => 'admin_main_page',
      'weight' => 9);
  }
  return $items;
}

/**
 * Menu callback; provides the main page of the administration section.
 */
function admin_main_page() {
  watchdog_overview('actions');
}

?>