You are here

function _update_user_edit_path in User Tabs 7

3 calls to _update_user_edit_path()
usertabs_drupal_goto_alter in ./usertabs.module
usertabs_preprocess_link in ./usertabs.module
usertabs_url_outbound_alter in ./usertabs.module

File

./usertabs.module, line 73
usertabs.module

Code

function _update_user_edit_path(&$path) {
  if (substr($path, 0, 5) != 'user/') {
    return;
  }
  $args = explode('/', $path);
  if (count($args) > 2 && $args[2] == 'edit') {
    $path = str_replace('edit', 'account/edit', $path);
  }
}