function sf_prematch_fieldmap_edit_form_submit in Salesforce Suite 7.2
Same name and namespace in other branches
- 6.2 sf_prematch/sf_prematch.module \sf_prematch_fieldmap_edit_form_submit()
- 7 sf_prematch/sf_prematch.module \sf_prematch_fieldmap_edit_form_submit()
Piggyback on fieldmap edit form submit so can redirect to prematch creation for the fieldmap.
_state
Parameters
array $form:
1 string reference to 'sf_prematch_fieldmap_edit_form_submit'
- sf_prematch_form_alter in sf_prematch/
sf_prematch.module - Implements hook_form_alter().
File
- sf_prematch/
sf_prematch.module, line 97 - Extends Salesforce API module so checks for an existing match for an object before creating a new one.
Code
function sf_prematch_fieldmap_edit_form_submit($form, &$form_state) {
$fieldmap = $form_state['values']['fieldmap_index'];
$form_state['redirect'] = SALESFORCE_PATH_FIELDMAPS . '/' . $fieldmap . '/prematching';
}