function image_ncck_flickr_image_title in Embedded Media Field 5
implement image_ncck_PROVIDER_image_title
Parameters
$code: the code of the image @param $data any stored data for the image, which may already have the title @return the title as the 3rd party provider knows it, if accessible to us. otherwise, ''
File
- contrib/
image_ncck/ providers/ flickr.inc, line 214
Code
function image_ncck_flickr_image_title($code, $data) {
if ($data['title']) {
return $data['title'];
}
$photo = image_ncck_flickr_request('flickr.photos.getInfo', array(
'photo_id' => $code,
));
return $photo['photo']['title']['_content'] ? $photo['photo']['title']['_content'] : '';
}