I want to customize the user-edit page. So in my template.php in my custom theme i direct Drupal to look for my custom template as:
function mytheme_theme() {
return array(
// The form ID
'user_profile_form' => array(
// Forms always take the form argument.
'arguments' => array('form' => NULL),
'render element' => 'form',
'template' => 'templates/user-profile-edit',
),
);
}
This works fine as Drupal is able to pick my custom user-profile-edit.tpl.php. Inside that file i have rendered some elements as :
<?php
print render($form['form_id']);
print render($form['form_build_id']);
print render($form['form_token']);
print render($form['field_birthday_user']);
print render($form['field_real_name_user']);
And so on.I have two questions...How do i get the user picture field, username, password, and email id fields to edit and how do i get to save the profile, i.e., how to get the save button. For the first part i tried doing:
print render($form['account']);
However, this does not displays the user picture.
For the second part, i tried doing this :
<input type=”submit” name=”op” id=”edit-submit” value=”Save” />
at the end of my custom user-profile-edit.tpl.php. However i get an error regarding syntax.
Would appreciate any suggestions especially regarding the user picture thing.
Thanks