Skip to content
Snippets Groups Projects
Commit 42abfd00 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Commited kika's usability patch for the help module.
parent 6f9b79b8
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -15,9 +15,18 @@ function help_link($type) {
}
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>". ucfirst($name) ." module</h2>";
print "<h2><a name=\"$name\">". ucfirst($name) ." module</a></h2>";
print module_invoke($name, "help");
}
}
......
......@@ -15,9 +15,18 @@ function help_link($type) {
}
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>". ucfirst($name) ." module</h2>";
print "<h2><a name=\"$name\">". ucfirst($name) ." module</a></h2>";
print module_invoke($name, "help");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment