summaryrefslogtreecommitdiff
path: root/modules/help/help.module
blob: 423ac662cf5b98c021679929360b44ab0aa2f831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
// $Id$

function help_system($field){
  $system["description"] = t("Manages displaying online help.");
  return $system[$field];
}

function help_link($type) {
  if ($type == "admin") {
    $links[] = la(t("help"), array("mod" => "help"));
  }

  return $links ? $links : array();
}

function help_admin() {
  foreach (module_list() as $name) {
    if (module_hook($name, "help")) {
      print "<h2>". ucfirst($name) ." module</h2>";
      print module_invoke($name, "help");
    }
  }
}

?>