You are here

function ml_flickr_get_obj in Media Library 6

Returns an object of flickr for the operations. To reduce memory footprint, we statically cache it

4 calls to ml_flickr_get_obj()
ml_flickr_build_url in ml_image/ml_flickr/ml_flickr.module
Builds an image url
ml_flickr_get_sizes in ml_image/ml_flickr/ml_flickr.module
Loads image sizes
ml_flickr_image_info in ml_image/ml_flickr/ml_flickr.module
Loads image info
ml_flickr_search in ml_image/ml_flickr/ml_flickr.module
Function that searches flickr TODO: Add arguments

File

ml_image/ml_flickr/ml_flickr.module, line 237
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_get_obj() {
  static $flickr_obj;
  if (!is_object($flickr_obj)) {
    $flickr_obj = flickrapi_phpFlickr();
  }
  return $flickr_obj;
}