Skip to content

Instantly share code, notes, and snippets.

@danreb
Created November 15, 2012 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save danreb/4076364 to your computer and use it in GitHub Desktop.
Save danreb/4076364 to your computer and use it in GitHub Desktop.
Drupal Hook form alter to change user login, register, password page title
<?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'));
}
}
@danreb
Copy link
Author

danreb commented Nov 15, 2012

Drupal Hook form alter to change user login, register, password page title

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment