summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--advanced_help.module23
1 files changed, 17 insertions, 6 deletions
diff --git a/advanced_help.module b/advanced_help.module
index d961799..a160362 100644
--- a/advanced_help.module
+++ b/advanced_help.module
@@ -38,13 +38,24 @@
*/
function advanced_help_menu() {
// View help topic index.
- $items['admin/advanced_help'] = array(
- 'title' => module_exists('help') ? 'Advanced help' : 'Help',
- 'page callback' => 'advanced_help_index_page',
- 'access arguments' => array('view advanced help index'),
- 'weight' => 9,
- );
+ // This is structured a little oddly so POTX can properly handle the translation.
+ if (module_exists('help')) {
+ $items['admin/advanced_help'] = array(
+ 'title' => 'Advanced help',
+ 'page callback' => 'advanced_help_index_page',
+ 'access arguments' => array('view advanced help index'),
+ 'weight' => 9,
+ );
+ }
+ else {
+ $items['admin/advanced_help'] = array(
+ 'title' => 'Help',
+ 'page callback' => 'advanced_help_index_page',
+ 'access arguments' => array('view advanced help index'),
+ 'weight' => 9,
+ );
+ }
$items['advanced_help/search/%menu_tail'] = array(
'title' => 'Search help',
'page callback' => 'advanced_help_search_view',