Commit 6049d79b authored by merlinofchaos's avatar merlinofchaos
Browse files

Fix menu entry so potx can handle it.

parent 32bc9b17
......@@ -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',
......
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