If enable or disable the 'Disable the normal User Edit tab' need to rebuid menu.

  $form['#submit'][] = 'account_profile_admin_form_submit';

function account_profile_admin_form_submit($form, &$form_state) {
  $disable_edit_tab = variable_get('account_profile_edit_tab', TRUE) ;
  if (variable_get('account_profile_edit_tab', TRUE) != $form_state['values']['account_profile_edit_tab']) {
    menu_rebuild();
  }
}

Comments

szantog’s picture

StatusFileSize
new853 bytes

hmm.. duplicated variable_get

kenorb’s picture

Great patch.

kenorb’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.