2003-01-06 19:51:01 +00:00
|
|
|
<?php
|
|
|
|
// $Id$
|
|
|
|
|
2004-05-11 20:10:14 +00:00
|
|
|
/**
|
|
|
|
* Implementation of hook_help().
|
|
|
|
*/
|
2003-08-05 18:33:39 +00:00
|
|
|
function admin_help($section) {
|
|
|
|
switch ($section) {
|
2004-06-18 15:04:37 +00:00
|
|
|
case 'admin/modules#description':
|
2004-05-26 18:45:49 +00:00
|
|
|
return t('Handles the administration pages.');
|
|
|
|
case 'admin':
|
|
|
|
return t('Welcome to the administration section. Below are the most recent system events.');
|
2003-08-05 18:33:39 +00:00
|
|
|
}
|
|
|
|
}
|
2003-09-26 10:04:09 +00:00
|
|
|
|
2004-04-21 13:56:38 +00:00
|
|
|
/**
|
2004-06-18 15:04:37 +00:00
|
|
|
* Implementation of hook_menu().
|
2004-04-21 13:56:38 +00:00
|
|
|
*/
|
2004-06-18 15:04:37 +00:00
|
|
|
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;
|
2003-01-26 13:27:59 +00:00
|
|
|
}
|
|
|
|
|
2004-05-11 20:10:14 +00:00
|
|
|
/**
|
2004-05-17 22:00:06 +00:00
|
|
|
* Menu callback; provides the main page of the administration section.
|
2004-05-11 20:10:14 +00:00
|
|
|
*/
|
2004-05-17 22:00:06 +00:00
|
|
|
function admin_main_page() {
|
2004-05-26 18:45:49 +00:00
|
|
|
watchdog_overview('actions');
|
2003-01-06 19:51:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|