You are here

function sf_import_settings_form_submit in Salesforce Suite 7.2

Same name and namespace in other branches
  1. 6.2 sf_import/ \sf_import_settings_form_submit()

Submit handler for the settings page.

1 string reference to 'sf_import_settings_form_submit'
sf_import_settings_form in sf_import/
Main import settings form for Salesforce Import module.


sf_import/, line 198
Admin settings for the Salesforce Import module.


function sf_import_settings_form_submit($form, &$form_state) {
  if ($form_state['values']['op'] == 'Import updates') {
    if (variable_get('sf_import_fieldmaps', array())) {
      $updates = sf_import_import_records();
      $processed = _sf_import_process_records();
      if (user_access('administer salesforce')) {
        if ($updates) {
          drupal_set_message(t('@updates record(s) imported from Salesforce.', array(
            '@updates' => count($updates),
        if ($processed) {
          drupal_set_message(t('@processed imported record(s) processed.', array(
            '@processed' => count($processed),
        drupal_set_message(t('Please allow one minute to refresh this page for accurate information about newly updated records in Salesforce.'));