You are here

function cdn_cron in CDN 5

Implementation of hook_cron().

2 string references to 'cdn_cron'
cdn_cron_cleanup in ./cdn_cron.inc
Shutdown function for CDN cron cleanup.
cdn_cron_run in ./cdn_cron.inc
Executes a CDN synchronization cron run when called

File

./cdn.module, line 148

Code

function cdn_cron() {
  if (variable_get('cdn_cron_method', 'cdn') == 'core') {
    $cdn_dir = drupal_get_path('module', 'cdn');
    require_once "{$cdn_dir}/cdn.inc";
    require_once "{$cdn_dir}/cdn_cron.inc";
    cdn_cron_run();
  }
}