'admin/help', 'title' => t('help'), 'callback' => 'help_main', 'access' => $admin_access, 'weight' => 9); foreach (module_implements('help', TRUE) as $module) { $items[] = array('path' => 'admin/help/' . $module, 'title' => t($module), 'callback' => 'help_page', 'type' => MENU_CALLBACK, 'access' => $admin_access); } } return $items; } /** * Menu callback; prints a page listing a glossary of Drupal terminology. */ function help_main() { $output = t("

Help topics

Help is available on the following items:

%help_pages

Glossary of Drupal terminology

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.)
Node
The basic data unit in Drupal. Everything is a node or an extension 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('%help_pages' => help_links_as_list(), '%taxonomy' => url('admin/help/taxonomy'))); return $output; } function help_links_as_list() { $modules = array(); foreach (module_implements('help', TRUE) as $module) { if (module_invoke($module, 'help', "admin/help#$module")) { $modules[] = $module; } } sort($modules); // Output pretty four-column list $break = ceil(count($modules) / 4); $output = '

'; return $output; } /** * Implementation of hook_help(). */ function help_help($section) { switch ($section) { case 'admin/help': $output = t('

This guide explains what the various modules in Drupal do and how to configure them.

It is not a substitute for the Drupal handbook available online and should be used in conjunction with it. The online reference handbook might be more up-to-date and has helpful user-contributed comments. It is your definitive reference point for all Drupal documentation.

', array('%Drupal' => 'http://drupal.org', '%handbook' => 'http://drupal.org/handbook')); return $output; case 'admin/help#help': $output = '

'. t('The help module displays context sensitive help information. Users can learn how to use modules and accomplish tasks quicker with less errors by clicking on links in provided by the help module.') .'

'; $output .= t('

Modules can make documentation available to other modules with this module. All user help should be presented using this module. Some examples of help:

'); $output .= '

'. t('You can not administer the help system.') .'

'; $output .= '

'. t('For more information please read the configuration and customization handbook Help page.', array('%help' => 'http://drupal.org/handbook/modules/help/')) .'

'; return $output; case 'admin/modules#description': return t('Manages the display of online help.'); } } /** * Menu callback; prints a page listing general help for all modules. */ function help_page() { $name = arg(2); $output = ''; if (module_hook($name, 'help')) { $temp = module_invoke($name, 'help', "admin/help#$name"); if (empty($temp)) { $output .= t("No help is available for module %module.", array('%module' => $name)); } else { $output .= $temp; } } return $output; }