salesforce_pull.module in Salesforce Suite 5.0.x
Same filename and directory in other branches
Pull updates from Salesforce when a Salesforce object is updated.
File
modules/salesforce_pull/salesforce_pull.moduleView source
<?php
/**
* @file
* Pull updates from Salesforce when a Salesforce object is updated.
*/
/**
* Implements hook_cron().
*/
function salesforce_pull_cron() {
if (\Drupal::config('salesforce.settings')
->get('standalone')) {
// If global standalone processing is enabled, stop here.
return;
}
if (\Drupal::service('plugin.manager.salesforce.auth_providers')
->getToken()) {
\Drupal::service('salesforce_pull.queue_handler')
->getUpdatedRecords();
\Drupal::service('salesforce_pull.delete_handler')
->processDeletedRecords();
}
}
Functions
Name | Description |
---|---|
salesforce_pull_cron | Implements hook_cron(). |