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

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

Dries's avatar
 
Dries committed
9 10
function help_link($type) {
  if ($type == "admin") {
Dries's avatar
 
Dries committed
11
    $links[] = la(t("help"), array("mod" => "help"));
Dries's avatar
 
Dries committed
12 13 14 15 16
  }

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

Dries's avatar
 
Dries committed
17
function help_admin() {
Dries's avatar
 
Dries committed
18 19
  foreach (module_list() as $name) {
    if (module_hook($name, "help")) {
Dries's avatar
 
Dries committed
20
      print "<h2>". ucfirst($name) ." module</h2>";
Dries's avatar
 
Dries committed
21 22 23
      print module_invoke($name, "help");
    }
  }
Dries's avatar
 
Dries committed
24
}
Dries's avatar
 
Dries committed
25

Dries's avatar
 
Dries committed
26
?>