function scald_image_scald_fetch in Scald: Media Management made easy 7
Implements hook_scald_fetch().
File
- modules/
providers/ scald_image/ scald_image.module, line 201 - Scald Image is a Scald Atom Provider for images.
Code
function scald_image_scald_fetch($atom, $type) {
if ($type == 'atom') {
$file = file_load($atom->base_id);
$atom->base_entity = $file;
$atom->file_source = $file->uri;
$atom->thumbnail_source = $file->uri;
}
}