I've written a custom module that removes and alters a lot of strings on the user registration page, but have been banging my head trying to figure out how to remove/alter some of the strings provided by Logintoboggan.
I'm also trying to remove the jQuery password strength checker.. or at least edit some of its strings, and haven't yet been able to do that either. I'm quite confused as to why some parts of this module work while some don't. Any suggestions?
Here's what I'm working with:
<?php
/**
* Implementation of hook_form_alter().
*/
function custom_form_alter(&$form, $form_state, $form_id) {
switch ($form_id) {
case 'user_register_form':
unset($form['account']['name']['#description']);
unset($form['account']['mail']['#description']);
unset($form['account']['pass']['#description']);
unset($form['account']['conf_mail']['#description']); //doesn't work
unset($form['pass']['#description']); //doesn't work
$form['account']['name']['#title'] = 'username';
$form['account']['mail']['#title'] = 'email';
$form['actions']['submit']['#value'] = 'done!';
break;
case 'user_login_block':
unset($form['links']);
$form['name']['#title'] = 'username';
$form['pass']['#title'] = 'password';