You are here

function _video_image_temp_image_load in Video 5

Same name and namespace in other branches
  1. 6 plugins/video_image/video_image.module \_video_image_temp_image_load()
  2. 6.2 plugins/video_image/video_image.module \_video_image_temp_image_load()
3 calls to _video_image_temp_image_load()
_video_image_prepare in plugins/video_image/video_image.module
_video_image_submit in plugins/video_image/video_image.module
_video_image_view in plugins/video_image/video_image.module

File

plugins/video_image/video_image.module, line 383
Enable image support for video module.

Code

function _video_image_temp_image_load($fids) {
  $image = new stdClass();
  $image->type = 'image';
  $image->new_file = 1;
  $fids = implode(',', $fids);
  $results = db_query("SELECT fid, filename, filepath FROM {files} WHERE fid IN (%s)", $fids);
  while ($file = db_fetch_object($results)) {
    $label = substr($file->filename, 17);
    $image->images[$label] = $file->filepath;
    $image->fids[$label] = $file->fid;
  }
  return $image;
}