You are here

function theme_salesforce_api_drupal_sfapi_automatic in Salesforce Suite 7.2

Same name and namespace in other branches
  1. 6.2 salesforce_api/salesforce_api.admin.inc \theme_salesforce_api_drupal_sfapi_automatic()

Theme callback for sync option radios

1 theme call to theme_salesforce_api_drupal_sfapi_automatic()
salesforce_api_fieldmap_edit_form in salesforce_api/salesforce_api.admin.inc

File

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

Code

function theme_salesforce_api_drupal_sfapi_automatic($variables) {
  $element = $variables['element'];
  $element[SALESFORCE_AUTO_SYNC_CREATE]['#description'] = t('Create and link Salesforce records automatically when Drupal records are created.');
  $element[SALESFORCE_AUTO_SYNC_UPDATE]['#description'] = t('Update Salesforce records if a link already exists.');
  $element[SALESFORCE_AUTO_SYNC_DELETE]['#description'] = t('Delete linked Salesforce records when a Drupal record is deleted.');
  return drupal_render_children($element);
}