Custom edit user page I'm trying to build an edit form for specific users. 
For one type of user I want to hide password field for example

What I did is to create a module called profilechange.

Into profilechange.module I wrote this code : 

function profilechange_form_alter(&amp;$form, $form_state, $form_id) {
    if ($form_id == 'user-profile-form') {
       hide($form['account']['pass']);
       hide($form['account']['current_pass_required_values']);
       hide($form['account']['current_pass']);
    }
}


So I enable the module and into my page--user--edit.tpl.php I've this code :

&lt;?php print render($page['content']); ?&gt;


It displays the default edit form. But password fields are not hidden.

That's why I need your help, I don't know why it does not work even if I clear the cache
You also might try the user readonly module. It allows to disable or hide certain form fields for certain users.