You are here

function scald_dailymotion_cron in Scald: Media Management made easy 6

Implements hook_cron.

File

scald_dailymotion/scald_dailymotion.module, line 76
Defines a DailyMotion provider for Scald.

Code

function scald_dailymotion_cron() {
  $imports = variable_get('scald_dailymotion_imports', array());
  foreach ($imports as $import) {
    $items = scald_dailymotion_feed($import['type'], $import['value']);
    foreach ($items as $item) {
      scald_dailymotion_register($item);
    }
  }
}