I am trying to modify the displayed title of the realname and node search tabs under drupal search using hook_menu_alter in drupal 6. However I can't figure out how to use the title calback and title arguments for my purpose unlike simpler tabs the search tabs doesn't just have a title.
function sn_misc_menu_alter(&$items) {
// hide advanced help search tab (this works finde)
$items['search/advanced_help/%menu_tail']['type'] = MENU_CALLBACK;
// change titles - here I don't know how to use the title callback and title arguments properly. This was one of my failed attempts
$items['search/realname/%menu_tail']['title callback'] = 'realname_search_title';
$items['search/realname/%menu_tail']['title arguments'][0] = 'Søg i brugere';
}
This is the realname $item output:
(Array, 10 elements)
title callback (String, 13 characters ) module_invoke | (Callback) module_invoke();
title arguments (Array, 4 elements)
0 (String, 8 characters ) realname
1 (String, 6 characters ) search
2 (String, 4 characters ) name
3 (Boolean) TRUE
page callback (String, 11 characters ) search_view
page arguments (Array, 1 element)
0 (String, 8 characters ) realname
access callback (String, 12 characters ) _search_menu | (Callback) _search_menu();
access arguments (Array, 1 element)
0 (String, 8 characters ) realname
type (Integer) 128
parent (String, 6 characters ) search
file (String, 16 characters ) search.pages.inc
module (String, 6 characters ) search