function theme_flickrfield_formatter_photoset_flickrcomslideshow_simple in Flickr 6
Same name and namespace in other branches
- 7 field/flickrfield.module \theme_flickrfield_formatter_photoset_flickrcomslideshow_simple()
Theme a Flickr photo set as an embedded Flickr.com slideshow (non Flash).
File
- field/
flickrfield.module, line 416 - Defines a Flickr field type.
Code
function theme_flickrfield_formatter_photoset_flickrcomslideshow_simple($element) {
require_once drupal_get_path('module', 'flickr') . '/flickr.inc';
if (empty($element['#item']['flickrid'])) {
return;
}
$set_id = $element['#item']['flickrid'];
$info = flickr_photoset_get_info($set_id);
$user_id = $info['owner'];
$src = 'https://www.flickr.com/slideShow/index.gne?group_id=&user_id=' . $user_id . '&set_id=' . $set_id . '&text=';
return '<div class="flickr-photoset-slideshow">' . '<object type="text/html" data="' . $src . '"></object>' . '</div>';
}