| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file 5 * Manages displaying online help. 6 */ 7 8 /** 9 * Implementation of hook_menu(). 10 */ 11 function help_menu() { 12 $items['admin/help'] = array( 13 'title' => 'Help', 14 'page callback' => 'help_main', 15 'access arguments' => array('access administration pages'), 16 'weight' => 9, 17 'file' => 'help.admin.inc', 18 ); 19 20 foreach (module_implements('help', TRUE) as $module) { 21 $items['admin/help/'. $module] = array( 22 'title' => $module, 23 'page callback' => 'help_page', 24 'page arguments' => array(2), 25 'access arguments' => array('access administration pages'), 26 'type' => MENU_CALLBACK, 27 'file' => 'help.admin.inc', 28 ); 29 } 30 31 return $items; 32 } 33 34 /** 35 * Implementation of hook_help(). 36 */ 37 function help_help($path, $arg) { 38 switch ($path) { 39 case 'admin/help': 40 $output = '<p>'. t('This guide provides context sensitive help on the use and configuration of <a href="@drupal">Drupal</a> and its modules, and is a supplement to the more extensive online <a href="@handbook">Drupal handbook</a>. 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')) .'</p>'; 41 return $output; 42 case 'admin/help#help': 43 $output = '<p>'. t('The help module provides context sensitive help on the use and configuration of <a href="@drupal">Drupal</a> and its modules, and is a supplement to the more extensive online <a href="@handbook">Drupal handbook</a>. 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')) .'</p>'; 44 $output .= '<p>'. t('For more information, see the online handbook entry for <a href="@help">Help module</a>.', array('@help' => 'http://drupal.org/handbook/modules/help/')) .'</p>'; 45 return $output; 46 } 47 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |