help.module 372 Bytes
Newer Older
Dries's avatar
 
Dries committed
1 2
<?php

Dries's avatar
 
Dries committed
3 4 5 6 7 8 9 10
function help_link($type) {
  if ($type == "admin") {
    $links[] = "<a href=\"admin.php?mod=help\">help</a>";
  }

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

Dries's avatar
 
Dries committed
11
function help_admin() {
Dries's avatar
 
Dries committed
12 13
  foreach (module_list() as $name) {
    if (module_hook($name, "help")) {
Dries's avatar
 
Dries committed
14
      print "<h2>". ucfirst($name) ." module</h2>";
Dries's avatar
 
Dries committed
15 16 17
      print module_invoke($name, "help");
    }
  }
Dries's avatar
 
Dries committed
18 19 20
}

?>