summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Phillips2007-11-30 00:49:29 (GMT)
committer Chad Phillips2007-11-30 00:49:29 (GMT)
commit778c4ba456a20ad1e9c503a39f5825d8cdc7af56 (patch)
tree38047bc93efa8462224b45cf8cf33af95c52154e
parent6b038466892bd4059c3061e47669998af3f6dbfd (diff)
by hunmonk, webchick: don't clobber other submit handlers on user registration.
-rwxr-xr-xlogintoboggan.module5
1 files changed, 4 insertions, 1 deletions
diff --git a/logintoboggan.module b/logintoboggan.module
index 903484f..596640d 100755
--- a/logintoboggan.module
+++ b/logintoboggan.module
@@ -179,7 +179,10 @@ function logintoboggan_form_alter($form_id, &$form) {
}
$mail = variable_get('email_reg_confirm', 0);
$pass = !variable_get('user_email_verification', TRUE);
- $form['#submit'] = array('logintoboggan_user_register_submit' => array());
+
+ unset($form['#submit']['user_register_submit']);
+ $form['#submit']['logintoboggan_user_register_submit'] = array();
+
if ($mail || $pass) {
$form['#validate'] += array('logintoboggan_user_register_validate' => array());