blob: 856fd83df1c4e4667407b3f5a17c4cf9924e2e64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
// $Id$
function help_system($field){
$system["description"] = t("Manages displaying online help.");
return $system[$field];
}
function help_link($type) {
if ($type == "admin") {
menu_add("help", "admin.php?mod=help", "Help", NULL, NULL, 9);
}
}
function help_admin() {
foreach (module_list() as $name) {
if (module_hook($name, "help")) {
$links[] = la($name, array("mod" => "help"), $name);
}
}
print "<small>". implode(" · ", $links) ."</small><hr />";
foreach (module_list() as $name) {
if (module_hook($name, "help")) {
print "<h2><a name=\"$name\">". ucfirst($name) ." module</a></h2>";
print module_invoke($name, "help");
}
}
}
?>
|