You are here

function ml_flickr_build_url in Media Library 6

Builds an image url

1 call to ml_flickr_build_url()
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 212
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_build_url($image, $size) {
  $size = strtolower($size);
  if (ml_flickr_build_url_validate($image)) {
    $flickr_obj = ml_flickr_get_obj();
    return $flickr_obj
      ->buildPhotoURL($image, $size);
  }
}