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

function help_link($type) {
  if ($type == "admin") {
    $links[] = "<a href=\"admin.php?mod=help\">help</a>";
  }

  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");
    }
  }
}

?>