Active
Project:
Abuse
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2009 at 12:58 UTC
Updated:
25 Nov 2009 at 13:06 UTC
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:
//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
Comment #1
dakku commentedquick suggestion and workaround from Nick Thompson: