function _photos_check_image in Album Photos 7.3
Same name and namespace in other branches
- 6.2 photos.module \_photos_check_image()
Photos - return image object.
File
- ./
photos.module, line 2278 - Implementation of photos.module.
Code
function _photos_check_image($fid) {
$image = db_select('photos_image', 'p')
->fields('p')
->condition('p.fid', $fid)
->execute()
->fetchObject();
return $image;
}