blob: 5bc931cecdaf5a7680eeed7c369f973ecdfaedbb (
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", url("admin/help"), "Help", NULL, NULL, 9);
}
}
function help_admin() {
foreach (module_list() as $name) {
if (module_hook($name, "help")) {
$links[] = l($name, "admin/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");
}
}
}
?>
|