I'm using the Commerce module and in the checkout process I'd like to change the size of one of the input fields. I'm trying to use the following code but it doesn't seem to be working.
Am I doing this correctly? Or is there a better way to change the size of an existing form input field?
function mytheme_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'form-AyTG_90yQduNFHHSAwpVnMfNNXEt5iv_eUvptp_Ex7E') {
$form['edit-account-login-mail'] = array(
'#size' => 40,
);
}
}