You are here

function media_flickr_image_url in Media: Flickr 7.2

Same name and namespace in other branches
  1. 7 media_flickr.module \media_flickr_image_url()

Based on the Photo ID of a Flickr image, this will return the URL to the image itself.

Parameters

$photo_code: The Flickr photo code. @param $width @param $height We use this to guess the actual size provided by Flickr. @param boolean $refresh Optional; if TRUE, then we'll force a new load of the XML. Otherwise, a cached version will be retrieved if possible.

3 calls to media_flickr_image_url()
MediaFlickrStreamWrapper::getExternalUrl in includes/MediaFlickrStreamWrapper.inc
Get the url of the original image.
theme_media_flickr_embed in themes/media_flickr.theme.inc
_media_flickr_photoset_image_url in includes/media_flickr.utilities.inc

File

./media_flickr.module, line 160
Provides a stream wrapper and formatters appropriate for accessing and displaying Flickr images.

Code

function media_flickr_image_url($photo_code, $width = 0, $height = 0, $refresh = FALSE) {
  module_load_include('inc', 'media_flickr', 'includes/media_flickr.utilities');
  return _media_flickr_photo_url($photo_code, $width, $height, $refresh);
}