help_page

function help_page

help_page($name)

Menu callback; prints a page listing general help for a module.

Parameters

$name: A module name to display a help page for.

File

modules/help/help.admin.inc, line 24
Admin page callbacks for the help module.

Code

function help_page($name) {
  $output = '';
  if (module_hook($name, 'help')) {
    $info = system_get_info('module');
    drupal_set_title($info[$name]['name']);

    $temp = module_invoke($name, 'help', "admin/help#$name", drupal_help_arg());
    if (empty($temp)) {
      $output .= t("No help is available for module %module.", array('%module' => $info[$name]['name']));
    }
    else {
      $output .= $temp;
    }

    // Only print list of administration pages if the module in quest