You are here

function cmis_sync_cron in CMIS API 7

Same name and namespace in other branches
  1. 6.4 cmis_sync/cmis_sync.module \cmis_sync_cron()
  2. 6 cmis_sync/cmis_sync.module \cmis_sync_cron()
  3. 6.2 cmis_sync/cmis_sync.module \cmis_sync_cron()
  4. 6.3 cmis_sync/cmis_sync.module \cmis_sync_cron()
  5. 7.2 cmis_sync/cmis_sync.module \cmis_sync_cron()

Implementation of hook_cron

2 string references to 'cmis_sync_cron'
_cmis_sync_cmis_drupal_handle_updates in cmis_sync/cmis_sync.cmis.inc
Creates/updates Drupal nodes with CMIS content.
_cmis_sync_cmis_drupal_update in cmis_sync/cmis_sync.cmis.inc
Handles CMIS to Drupal updates.

File

cmis_sync/cmis_sync.module, line 112

Code

function cmis_sync_cron() {
  if (variable_get('cmis_sync_cron_enabled', TRUE)) {
    module_load_include('cmis.inc', 'cmis_sync');
    try {
      _cmis_sync_cmis_drupal_update();
    } catch (CMISException $e) {
      cmis_error_handler('cmis_sync_cron', $e);
    }
  }
}