Commit 1c4c2d84 authored by Dries's avatar Dries

- Patch #99114 by kkaefer: proper capitalization of module names.

parent 70dbb848
......@@ -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;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment