summaryrefslogtreecommitdiff
path: root/modules/help/help.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-11-24 09:30:17 +0000
committerDries Buytaert <dries@buytaert.net>2006-11-24 09:30:17 +0000
commit1c4c2d845aa9aace62d99319d8c168b516e30665 (patch)
treeb34ba5468c8fdb5b34bc86c8a143451596522dfd /modules/help/help.module
parent70dbb848900d706e135221c5ffc75213b267e207 (diff)
downloadbrdo-1c4c2d845aa9aace62d99319d8c168b516e30665.tar.gz
brdo-1c4c2d845aa9aace62d99319d8c168b516e30665.tar.bz2
- Patch #99114 by kkaefer: proper capitalization of module names.
Diffstat (limited to 'modules/help/help.module')
-rw-r--r--modules/help/help.module7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/help/help.module b/modules/help/help.module
index 23a7b12a1..d7792803c 100644
--- a/modules/help/help.module
+++ b/modules/help/help.module
@@ -127,9 +127,12 @@ function help_page() {
$name = arg(2);
$output = '';
if (module_hook($name, 'help')) {
+ $module = _module_parse_info_file(drupal_get_path('module', $name).'/'. $name .'.info');
+ drupal_set_title($module['name']);
+
$temp = module_invoke($name, 'help', "admin/help#$name");
if (empty($temp)) {
- $output .= t("No help is available for module %module.", array('%module' => $name));
+ $output .= t("No help is available for module %module.", array('%module' => $module['name']));
}
else {
$output .= $temp;
@@ -137,7 +140,7 @@ function help_page() {
$admin_tasks = system_get_module_admin_tasks($name);
ksort($admin_tasks);
- $output .= theme('item_list', $admin_tasks, t('@module administration pages', array('@module' => $name)));
+ $output .= theme('item_list', $admin_tasks, t('@module administration pages', array('@module' => $module['name'])));
}
return $output;
}