You are here

function scald_dailymotion_scald_prerender in Scald: Media Management made easy 6

Implements hook_scald_prerender.

File

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

Code

function scald_dailymotion_scald_prerender(&$atom, $context, $options, $type) {
  if ($type == 'atom') {
    if ($context != 'sdl_library_item') {
      $atom->rendered->player = theme('scald_dailymotion_player', $atom->base_id, $atom->thumbnail_source);
    }
  }
}