'admin/help/glossary', 'title' => t('glossary'),
'callback' => 'help_glossary',
'access' => user_access('access administration pages'));
$items[] = array('path' => 'admin/help', 'title' => t('help'),
'callback' => 'help_page',
'access' => user_access('access administration pages'),
'weight' => 9);
return $items;
}
/**
* Menu callback; prints a page listing a glossary of Drupal terminology.
*/
function help_glossary() {
$output = t("
Glossary
- Block
- A small box containing information or content placed in the left-hand or right-hand sidebar of a web page.
- Comment
- A note attached to a node. Usually intended to clarify, explain, criticize, or express an opinion on the original material.
- Moderation
- The activity of making sure a post to a Drupal site fits in with what is expected for that Drupal site.
- Approved
- A moderated post which has been accepted by the moderators for publication. (See published).
- Waiting
- A moderated post which is still being voted on to be accepted for publication. (See published.)
- Moderators
- The group of Drupal users that reviews posts before they are published. These users have the \"access submission queue\" permission. (See Published).
- Node
- The basic data unit in Drupal. Everything is a node or an extention of a node.
- Public
- See published.
- Published
- A node that is viewable by everyone. (See unpublished.)
- Role
- A classification users are placed into for the purpose of setting users' permissions.
- Taxonomy
- A division of a collection of things into ordered, classified groups. (See taxonomy help.)
- Unpublished
- A node that is only viewable by administrators and moderators.
- User
- A person who has an account at your Drupal site, and is logged in with that account.
- Visitor
- A person who does not have an account at your Drupal site or a person who has an account at your Drupal site but is not logged in with that account. Also termed \"anonymous user\".
", array('%taxonomy' => url('admin/taxonomy/help')));
print theme('page', $output);
}
/**
* Implementation of hook_help().
*/
function help_help($section) {
switch ($section) {
case 'admin/modules#description':
$output = t('Manages displaying online help.');
break;
}
return $output;
}
/**
* Menu callback; prints a page listing general help for all modules.
*/
function help_page() {
foreach (module_list() as $name) {
if (module_hook($name, 'help')) {
$temp = module_invoke($name, 'help', "admin/help#$name");
if (!empty($temp)) {
$links[] = l($name, "admin/help#$name");
$output .= "';
$output .= $temp;
}
}
}
$output = ''. implode(' · ', $links) .'
'. $output;
print theme('page', $output);
}
?>