I'm using the following logic to add a custom handler to a form that's defined by another module. I'm trying to do additional processing on the form data.
function my_module_form_alter(&$form, $form_state, $form_id) {
if ($form_id == 'my_form') {
$form['#submit'][] = 'my_additional_submit_handler';
}
}
Of course I define my own handler called my_additional_submit_handler
function my_additional_submit_handler(){
}
but how do I pass the form and its values to my custom handler? I tried passing &$form, but could not access it in the custom handler with dsm. Is there a special syntax to pass in arguments with the custom form handler?