Skip to content

Instantly share code, notes, and snippets.

@danreb
Created November 15, 2012 02:57
Show Gist options
  • Select an option

  • Save danreb/4076364 to your computer and use it in GitHub Desktop.

Select an option

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

danreb commented Nov 15, 2012

Copy link
Copy Markdown
Author

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