I have the following code:
function corporate_form_alter(&$form, &$form_state, $form_id) {
switch ($form_id) {
case 'user_login_block':
{
unset($form['links']);
$form['#action'] = '/user/login';
$form['#submit'][] = 'custom_redirect';
$form['actions']['submit2'] = array(
'#type' => 'submit',
'#value' => t('Sign Up')
);
//echo '<pre>';
//print_r($form);
//exit;
break;
}
}
}
By all examples I have seen this should call a custom_redirect() in which I have tried echo'ing and exiting and using drupal_set_message('Form submitted'); to verify this callback is called.
It is not...I have refreshed the cache a dozen times...I had this working about 3 weeks ago and changed something...
Any ideas?