By McGo on
Hi,
i want to theme the user registration page. So i created an entry for that form in my template.php:
function mytheme_theme() {
return array(
'user_register' => array (
'arguments' => array('form' => NULL),
'template' => 'user_register'
)
);
}
And created a user_register.tpl.php file where i want to do the theming. I want to output the password fields with drupal_render($form['pass']) or drupal_render($form['account']['pass']). But debugging the $form array with the following points me to a problem. I neither have a $form['account']['pass'] nor a $form['pass'] field?!?
dsm ($form);
On one site it works, on another it doesn't (checking all the stuff into svn and checking it out on another site). So there might be a setting in the database that disables the password field?!? But i don't have a clue, what it could be...
Any idea?
Comments
Ok, i got the solution and
Ok, i got the solution and want to share it here, if someone gets into the same trouble:
On one site, the permission 'administer user' was set, so the register form was enriched by some more variables (e.g. the password fields). This settings was different on the two sites and so was the different $form array...
thx to Nielsbom for helping me debug this.
Greets,
McGo