1. 8.5.x core/modules/help/help.module
  2. 8.0.x core/modules/help/help.module
  3. 8.1.x core/modules/help/help.module
  4. 8.2.x core/modules/help/help.module
  5. 8.3.x core/modules/help/help.module
  6. 8.4.x core/modules/help/help.module
  7. 8.6.x core/modules/help/help.module
  8. 4.6.x modules/help.module
  9. 4.7.x modules/help.module
  10. 5.x modules/help/help.module
  11. 6.x modules/help/help.module
  12. 7.x modules/help/help.module

Manages displaying online help.

File

modules/help/help.module
View source
<?php

/**
 * @file
 * Manages displaying online help.
 */

/**
 * Implementation of hook_menu().
 */
function help_menu() {
  $items['admin/help'] = array(
    'title' => '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 = '<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>';
      return $output;
    case 'admin/help#help':
      $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>';
      $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>';
      return $output;
  }
}

Functions

Namesort descending Description
help_help Implementation of hook_help().
help_menu Implementation of hook_menu().