Login     Sign up
Need help to solve tab problem in my module..
HiFi Kids (@hifikids)
Join date: Oct 16th 2010
Community posts: 8
View Profile
Send Message

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

184 months ago
HiFi Kids (@hifikids)
Join date: Oct 16th 2010
Community posts: 8
View Profile
Send Message

No help on this topic? Please respond.

184 months ago