You are here

function salesforce_api_fieldmap_delete_form_submit in Salesforce Suite 7.2

Same name and namespace in other branches
  1. 5.2 salesforce_api/salesforce_api.admin.inc \salesforce_api_fieldmap_delete_form_submit()
  2. 6.2 salesforce_api/salesforce_api.admin.inc \salesforce_api_fieldmap_delete_form_submit()
  3. 7 salesforce_api/salesforce_api.admin.inc \salesforce_api_fieldmap_delete_form_submit()

FAPI submit handler for deleting a fieldmap

File

salesforce_api/salesforce_api.admin.inc, line 586
Contains the admin page callbacks for the Salesforce module, including forms for general settings and fieldmap administration.

Code

function salesforce_api_fieldmap_delete_form_submit($form, &$form_state) {

  // Delete the specified fieldmap.
  salesforce_api_fieldmap_delete($form_state['values']['fieldmap_index']);

  // Display a message and return to the admin screen.
  drupal_set_message(t('The fieldmap has been deleted.'));
  $form_state['redirect'] = SALESFORCE_PATH_FIELDMAPS;
}