summaryrefslogtreecommitdiff
path: root/modules/admin.module
blob: 276a63a2e5636a47c6909114daef9120be95b82c (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
<?php
// $Id$

/**
 * Implementation of hook_help().
 */
function admin_help($section) {
  switch ($section) {
    case "admin/system/modules#description":
      return t("Handles the administration pages.");
    case "admin":
      return t("Welcome to the administration section. Below are the most recent system events.");
    case "admin/overview":
      return t("This is a complete overview of the site administration page.");
  }
}

/**
 * Implementation of hook_link().
 */
function admin_link($type) {
  if ($type == 'system') {
    menu('admin', t('administer'), user_access('access administration pages') ? 'admin_main_page' : MENU_DENIED, 9);
  }
}

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

?>