function sf_prematch_delete_form_submit in Salesforce Suite 7
Same name and namespace in other branches
- 6.2 sf_prematch/sf_prematch.admin.inc \sf_prematch_delete_form_submit()
- 7.2 sf_prematch/sf_prematch.admin.inc \sf_prematch_delete_form_submit()
File
- sf_prematch/
sf_prematch.admin.inc, line 204 - Admin functions for sf_prematch module.
Code
function sf_prematch_delete_form_submit($form, &$form_state) {
// Delete the specified prematch.
sf_prematch_match_by_delete($form_state['values']['fieldmap_index']);
// Display a message and return to the admin prematch screen.
drupal_set_message(t('The prematch has been deleted.'));
$form_state['redirect'] = SALESFORCE_PATH_FIELDMAPS . '/prematching';
}