Created
November 15, 2012 02:57
-
-
Save danreb/4076364 to your computer and use it in GitHub Desktop.
Drupal Hook form alter to change user login, register, password page title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_form_alter | |
* | |
*/ | |
function lms_form_alter(&$form, $form_state, $form_id) { | |
if ($form_id == 'user_register_form') { | |
drupal_set_title(t('Create new account')); | |
} | |
if ($form_id == 'user_pass') { | |
drupal_set_title(t('Request new password')); | |
} | |
if ($form_id == 'user_login') { | |
drupal_set_title(t('Log in')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Drupal Hook form alter to change user login, register, password page title