diff -r fcf75e232c5b -r 0ff3ba646492 web/drupal/modules/help/help.module --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/drupal/modules/help/help.module Fri Aug 21 16:26:26 2009 +0000 @@ -0,0 +1,48 @@ + 'Help', + 'page callback' => 'help_main', + 'access arguments' => array('access administration pages'), + 'weight' => 9, + 'file' => 'help.admin.inc', + ); + + foreach (module_implements('help', TRUE) as $module) { + $items['admin/help/'. $module] = array( + 'title' => $module, + 'page callback' => 'help_page', + 'page arguments' => array(2), + 'access arguments' => array('access administration pages'), + 'type' => MENU_CALLBACK, + 'file' => 'help.admin.inc', + ); + } + + return $items; +} + +/** + * Implementation of hook_help(). + */ +function help_help($path, $arg) { + switch ($path) { + case 'admin/help': + $output = '
'. t('This guide provides context sensitive help on the use and configuration of Drupal and its modules, and is a supplement to the more extensive online Drupal handbook. The online handbook may contain more up-to-date information, is annotated with helpful user-contributed comments, and serves as the 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 provides context sensitive help on the use and configuration of Drupal and its modules, and is a supplement to the more extensive online Drupal handbook. The online handbook may contain more up-to-date information, is annotated with helpful user-contributed comments, and serves as the definitive reference point for all Drupal documentation.', array('@drupal' => 'http://drupal.org', '@handbook' => 'http://drupal.org/handbook')) .'
'; + $output .= ''. t('For more information, see the online handbook entry for Help module.', array('@help' => 'http://drupal.org/handbook/modules/help/')) .'
'; + return $output; + } +}