You are here

function bpn_flickr_get_api in Bulk File Nodes 7

Gets the Flickr API object for use in API calls.

Return value

object The PHP Flickr object

8 calls to bpn_flickr_get_api()
bpn_flickr_form_step_1_validate in modules/bpn_flickr/bpn_flickr.module
Form validation handler for bpn_flickr_form_step_1().
bpn_flickr_form_step_2 in modules/bpn_flickr/bpn_flickr.module
Form constructor for Step 2: Pick what images to load.
bpn_flickr_get_info in modules/bpn_flickr/bpn_flickr.module
Get information from a photo on flickr.
bpn_flickr_get_photo in modules/bpn_flickr/bpn_flickr.module
Get all sizes of a photo on flickr.
bpn_flickr_get_photos in modules/bpn_flickr/bpn_flickr.module
Get photos from a user's photostream.

... See full list

File

modules/bpn_flickr/bpn_flickr.module, line 448
Hooks and functions for the bpn_flickr module.

Code

function bpn_flickr_get_api() {
  $flickr =& drupal_static(__FUNCTION__);
  if (!isset($flickr)) {
    $flickr = flickrapi_phpFlickr();
  }
  return $flickr;
}