Drupal Submit Handler Call custom function without overriding default behaviour
I am building a module to integrate MIGS payment gateway with webform. Here I need to add some tasks to the existing webform submit handler. To do this i have to use $form['#submit'][] instead redeclaring the submit button:
Use
$form['#submit'][] = 'migs_form_submit';
instead of
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
'#submit' => array('migs_form_submit'),
);
where migs_form_submit is the name of the custom function in my custom module