You are here

function bpn_flickr_get_set in Bulk File Nodes 7

Gets photos from a user's photostream.

1 call to bpn_flickr_get_set()
bpn_flickr_form_step_2 in modules/bpn_flickr/bpn_flickr.module
Form constructor for Step 2: Pick what images to load.

File

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

Code

function bpn_flickr_get_set($set_id, $page = 1) {
  $flickr = bpn_flickr_get_api();
  $options = array(
    'photoset_id' => $set_id,
    'extras' => 'url_q',
    'privacy_filter' => NULL,
    'per_page' => 9,
    'page' => $page,
    'media' => 'photos',
  );
  extract($options);
  return $flickr
    ->photosets_getPhotos($photoset_id, $extras, $privacy_filter, $per_page, $page, $media);
}