You are here

function salesforce_push_action in Salesforce Suite 7.3

Push entity to Salesforce.

File

modules/salesforce_push/salesforce_push.module, line 589
Push updates to Salesforce when a Drupal entity is updated.

Code

function salesforce_push_action(&$entity, $context) {
  $trigger = !empty($entity->is_new) && $entity->is_new ? SALESFORCE_MAPPING_SYNC_DRUPAL_CREATE : SALESFORCE_MAPPING_SYNC_DRUPAL_UPDATE;
  salesforce_push_entity_crud($context['entity_type'], $entity, $trigger);
}