[support] Need to change user login
Al Sessions
fultonchain at gmail.com
Thu Oct 11 13:16:17 UTC 2012
On Tue, Oct 9, 2012 at 6:21 AM, Roger <arelem at bigpond.com> wrote:
> 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');
}
}
?>
--
Al Sessions
http://420summit.com
More information about the support
mailing list