Create new account tab and request new password tab are placed in the same page.When we click create new account link,create new account tab gets highlighted .The same scenario arises in the case of request new password link.

i want to remove 'create new account' tab from 'request new password' link and 'request new password' tab from 'create new account' link. Is it possible to achieve it

Comments

senpai’s picture

I'm dealing with the same problem tonight. Race ya?
______________________________
Senpai  ~ Want a better WorkHabit? ~

****
Joel "Senpai" Farris | certified to rock score

prakashp’s picture

This might probably not be the best solution, but could work. You can override the theme_menu_item_link() function in your template.php. Something like this:

function yourthemename_menu_item_link($link) {
  if (arg(0) == 'user') {
    if (arg(1) == 'register' && $link['path'] == 'user/password') {
      return null;
    }
    if (arg(1) == 'password' && $link['path'] == 'user/register') {
      return null;
    }
  }
  if (empty($link['localized_options'])) {
    $link['localized_options'] = array();
  }

  return l($link['title'], $link['href'], $link['localized_options']);
}

I first thought of disabling the menu item for 'user/password' or 'user/register' dynamically, but could not find a way to do it.