How to access a form in a custom form handler

porterfly

New Member
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. \[code\]function my_module_form_alter(&$form, $form_state, $form_id) { if ($form_id == 'my_form') { $form['#submit'][] = 'my_additional_submit_handler'; }}\[/code\]Of course I define my own handler called \[code\]my_additional_submit_handler\[/code\]\[code\]function my_additional_submit_handler(){}\[/code\]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?
 
Back
Top