help.module 381 Bytes
Newer Older
Dries's avatar
 
Dries committed
1
<?php
2
// $Id$
Dries's avatar
 
Dries committed
3

Dries's avatar
 
Dries committed
4 5 6 7 8 9 10 11
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
12
function help_admin() {
Dries's avatar
 
Dries committed
13 14
  foreach (module_list() as $name) {
    if (module_hook($name, "help")) {
Dries's avatar
 
Dries committed
15
      print "<h2>". ucfirst($name) ." module</h2>";
Dries's avatar
 
Dries committed
16 17 18
      print module_invoke($name, "help");
    }
  }
Dries's avatar
 
Dries committed
19
}
20

Dries's avatar
 
Dries committed
21
?>