Hi,
I am trying to implement my own submit handler on top of the abuse_report_form_submit function so i can get custom abuse notifications (PM as well as mail). eg:

function mymodule_form_alter($form_id, &$form) {

//abuse form alter
if($form_id == 'abuse_report_form'){
$form['#submit']['mymodule_abuse_notification'] = array();
}

}
?>

It appears that instead of returning an array at the end of abuse_report_form_submit function it is doing a drupal_goto which causes none of the hook_form_alter submit functions to be called, perhaps this should be change so other modules can implement their own submit handlers?

Cheers

Comments

dakku’s picture

quick suggestion and workaround from Nick Thompson:

$form['#submit'] = array('foobar' => array()) + $form['#submit'];