34 lines
689 B
Plaintext
34 lines
689 B
Plaintext
<?php
|
|
// $Id$
|
|
|
|
function help_system($field){
|
|
$system["description"] = t("Manages displaying online help.");
|
|
return $system[$field];
|
|
}
|
|
|
|
function help_link($type) {
|
|
if ($type == "admin") {
|
|
menu("admin/help", "help", "help_admin", 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");
|
|
}
|
|
}
|
|
}
|
|
|
|
?>
|