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

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

?>