You are here

function scald_file_generate_thumbnail in Scald File Provider 7

Action callback for the thumbnail generation action.

File

./scald_file.module, line 468
Scald File is a Scald Atom Provider for Files.

Code

function scald_file_generate_thumbnail($entity, $context) {
  if ($entity->provider === 'scald_file') {
    $entity->data['scald_thumbnail_default'] = TRUE;
    scald_atom_save($entity);
  }
}