From 36d44fbfb07e4682f219368e1424c58fc61315a1 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 22 Oct 2006 08:28:47 +0000 Subject: #84146: Use 'Sentence capitalization' for menu items, page titles, form items, etc --- modules/help/help.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/help') diff --git a/modules/help/help.module b/modules/help/help.module index ae80cd0ba..9cd1471f3 100644 --- a/modules/help/help.module +++ b/modules/help/help.module @@ -15,7 +15,7 @@ function help_menu($may_cache) { if ($may_cache) { $admin_access = user_access('access administration pages'); - $items[] = array('path' => 'admin/help', 'title' => t('help'), + $items[] = array('path' => 'admin/help', 'title' => t('Help'), 'callback' => 'help_main', 'access' => $admin_access, 'weight' => 9); @@ -70,6 +70,8 @@ function help_main() { } function help_links_as_list() { + $module_info = module_rebuild_cache(); + $modules = array(); foreach (module_implements('help', TRUE) as $module) { if (module_invoke($module, 'help', "admin/help#$module")) { @@ -82,7 +84,7 @@ function help_links_as_list() { $break = ceil(count($modules) / 4); $output = '
    '; foreach ($modules as $i => $module) { - $output .= '
  • '. l(t($module), 'admin/help/'. $module) .'
  • '; + $output .= '
  • '. l($module_info[$module]->info['name'], 'admin/help/'. $module) .'
  • '; if (($i + 1) % $break == 0) { $output .= '
    '; } -- cgit v1.2.3