[support] Need to change user login
Roger
arelem at bigpond.com
Sat Oct 13 05:07:41 UTC 2012
Thank you but where and how would I use this code please?
Thanks
Roger
> Using latest Drupal 7 fully updated.
>
> I need to change the user login system..
> Change the title of the
> Username to 'Question 1' and the Password title to 'Question 2'
> Is there a way to do this please.
> Maybe something like:
>
> <?php
> /**
> * Implements hook_form_alter().
> */
> function deliver_form_alter(&$form, $form_state, $form_id) {
>
> if ($form_id == 'user_login' || $form_id == 'user_login_block') {
>
> // change the labels
> $form['name']['#title'] = t('My name label here');
> $form['pass']['#title'] = t('My password label here');
>
> }
> }
>
> ?>
>
More information about the support
mailing list