write the following functions in your template.php file which you will find under your theme folder.
here I am using garland theme.
function garland_theme()
{
'user_pass' => array(
'template' => 'user-pass',
'arguments' => array('form' => NULL),
),
);
}
function garland_preprocess_user_pass(&$vars)
{
/*print '
'; print_r($vars); print '';*/
$tempVar = $vars['form'];
$tempVar['name']['#title'] = 'User Name or Email Address';
$tempVar['submit']['#value'] = 'E-mail new password';
$vars['username'] = drupal_render($tempVar['name']);
$vars['submit_button'] = drupal_render($tempVar['submit']);
$vars['tempForm'] = drupal_render($tempVar);
}
Now create user-pass.tpl.php and paste the below code into it and done.
<div id="registration_form">
<div class="field">
<?php
print $username;
?>
</div>
<div class="field">
<?php
echo $tempForm;
print $submit_button;
?>
</div>
</div>
</div>
Note: do not forget to clear cache of drupal from Administer -> Site Configuration -> Performance
I was looking for this certain information for a long time. Thank you and good luck.
ReplyDeleteData Science course in Chennai
Data science course in bangalore
Data science course in pune
Data science online course
Data Science Interview questions and answers
Data Science Tutorial