function ml_flickr_image_info in Media Library 6
Loads image info
1 call to ml_flickr_image_info()
- ml_flickr_flickr_options_form in ml_image/
ml_flickr/ ml_flickr.module - Image selection stage
File
- ml_image/
ml_flickr/ ml_flickr.module, line 273 - This module aims to provide some basic sources for images to use with Media Library, such as navigating on existing files and uploading new images
Code
function ml_flickr_image_info($image_id) {
$flickr_obj = ml_flickr_get_obj();
$image = $flickr_obj
->photos_getInfo($image_id);
$license_info = $flickr_obj
->photos_licenses_getInfo();
$image['license'] = $license_info[$image['license']];
return $image;
}