Hey all,<div><br></div><div>I've been working on this site in need of a form_alter on the user_login form and using the below code the only item I've been successfully able to alter is the submit button text. The account name doesn't change according to what I specified, nor do the other form items unset. I've successfully altered the user_register form with a separate case in the module shown below. I have Login Destination and LoginToboggan installed and have tried variations on 'user_login' to no avail and I still can't understand why one alteration (the submit value) works while the rest do not.</div>
<div><br></div><div>Any ideas??</div><div><br></div><div><div><br></div><div>function custommodule_form_alter(&$form, $form_state, $form_id) {</div><div> switch ($form_id) {</div><div><br></div><div> //user login</div>
<div> case 'user_login':</div><div><br></div><div>// $output .= print_r($form);</div><div><br></div><div> unset($form['name']['#description']);</div><div> unset($form['name']['#suffix']);</div>
<div> unset($form['pass']['#description']);</div><div> unset($form['pass']['#suffix']);</div><div><br></div><div> $form['account']['name']['#title'] = t('E-mail address');</div>
<div> $form['submit']['#value'] = t('Sign in');</div><div><br></div><div> break;</div><div><br></div><div><br></div>Jake Roufa<br>208.557.9390<br><br>
</div>