By Rajatarora on
I want to make customize login form in Drupal 7 theme with custom labels for username and password and also custom submit button but i don't know how to customize it.
Please explain me in detail how can i do it?
I want to make customize login form in Drupal 7 theme with custom labels for username and password and also custom submit button but i don't know how to customize it.
Please explain me in detail how can i do it?
Comments
This might get you started
This might get you started http://drupal.org/node/19855
Use form alter and css
Hi there,
To customize labels for username and password you need to use alter form in your customize module or template.php.
or
For theming
you can do with CSS or use a template file.
you can find more information for theming here https://drupal.org/node/19855
I hope this info will help you
Yarthesh acharya
I did this, it doesn't worked
I did this,
it doesn't worked out
I want to unset the create new account and change text for request new password also.
But nothing worked out
Can you post your
Can you post your hook_form_alter code for us to see?
<?phpfunction
I am using the above code i can now hide create new account and request new password but i am not able to change the username to Email and change the submit button into image
A few things:I wouldn't hide
A few things:
I wouldn't hide 'create new account' and 'request new password' using hook_form_alter. Instead I'd do the following:
As to customising the form, you are customising only the login block, there is also the general login form, so you need to account for that. Also not sure why you are using $variables, I think you might be misunderstanding the instructions at http://drupal.org/node/19855. Anyway, I'd do something like the below:
Then I would just use CSS to change the look.