function scald_dailymotion_scald_fetch in Scald: Media Management made easy 6
Implements hook_scald_fetch.
File
- scald_dailymotion/
scald_dailymotion.module, line 27 - Defines a DailyMotion provider for Scald.
Code
function scald_dailymotion_scald_fetch(&$atom, $type) {
$file = file_directory_path() . '/dailymotion/' . $atom->base_id . '.jpg';
if (file_exists($file)) {
$atom->thumbnail_source = $file;
$atom->file_source = $atom->thumbnail_source;
}
}