|
I created new module ([url]http://www.hifikids.com/kidsnetwork-dev/index.php)[/url] and I have a situation where I need to send year as a parameter when I redirect URL to the tab function...My menu function is as follows:
function allprofile_menu() {
$items = array();
$items['allprofile/birth_profile'] = array(
'name'=>'Kids profile',
'tab_name'=>'Birth',
'type'=>'personal'
);
$items['allprofile/birthdays'] = array(
'name'=>'Birthdays',
'type'=>'tab',
'parent'=>'allprofile/birth_profile'
);
$items['allprofile/childcare_profile'] = array(
'name'=>'Childcare',
'type'=>'tab',
'parent'=>'allprofile/birth_profile'
);
return $items;
}
In allprofile.module.php I need to redirect to the same tab from the same function e.g. birthdays()
e.g.redirect(url('allprofile/birthdays/'.$newbirthday['birthdayyear']),1);
But this redirection, doesn't highlight tab and I see that none of the tab is selected . I am still in the same tab function...only it is not highlighted. Can somebody help me to solve this issue? Thanks in advance for your help.
In short, is there any API call to set the menu tab to higlight it? ANy help is appreciated.
hifikids.com |