How to move the edit tab in user-profile.tpl.php I would want to reorganize the profile of the users, in the following way: 


Name (h1), 
Custom field 1,
Custom field 2, 
Edit tab ($tab), 
Block. 


I tried to delete the $tab variable in page--user.tpl.php, and add it in user--profile.tpl.php, but it does not work. 

How to move the edit tab in user-profile.tpl.php ?
Ok, i find the answer :

function THEME_preprocess_user_profile(&amp;$variables) {
  $variables['tabs'] = menu_local_tabs();
}