drupal/modules/admin.module

36 lines
762 B
Plaintext

<?php
// $Id$
/**
* Implementation of hook_help().
*/
function admin_help($section) {
switch ($section) {
case 'admin/modules#description':
return t('Handles the administration pages.');
case 'admin':
return t('Welcome to the administration section. Below are the most recent system events.');
}
}
/**
* Implementation of hook_menu().
*/
function admin_menu() {
$items = array();
$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');
}
?>