diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-10-22 08:28:47 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-10-22 08:28:47 +0000 |
commit | 36d44fbfb07e4682f219368e1424c58fc61315a1 (patch) | |
tree | d6a5363c6ec34a5b81aac6fee283ee7479d45ea4 /modules/help/help.module | |
parent | c93c0fc7000f5cbb78ac2715ace58c28b789dc81 (diff) | |
download | brdo-36d44fbfb07e4682f219368e1424c58fc61315a1.tar.gz brdo-36d44fbfb07e4682f219368e1424c58fc61315a1.tar.bz2 |
#84146: Use 'Sentence capitalization' for menu items, page titles, form items, etc
Diffstat (limited to 'modules/help/help.module')
-rw-r--r-- | modules/help/help.module | 6 |
1 files changed, 4 insertions, 2 deletions
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 = '<div class="clear-block"><div class="help-items"><ul>'; foreach ($modules as $i => $module) { - $output .= '<li>'. l(t($module), 'admin/help/'. $module) .'</li>'; + $output .= '<li>'. l($module_info[$module]->info['name'], 'admin/help/'. $module) .'</li>'; if (($i + 1) % $break == 0) { $output .= '</ul></div><div class="help-items'. ($i + 1 == $break * 3 ? ' help-items-last' : '') .'"><ul>'; } |