You are here

function _flickr_block_photosets in Flickr 5

Same name and namespace in other branches
  1. 6 block/flickr_block.module \_flickr_block_photosets()
1 call to _flickr_block_photosets()
flickr_block in block/flickr_block.module
Implementation of hook_block().

File

block/flickr_block.module, line 164

Code

function _flickr_block_photosets($nsid, $show_n, $size) {
  $photosets = flickr_photoset_get_list($nsid);
  $output = '';
  $to = min($show_n, count($photosets));
  for ($i = 0; $i < $to; $i++) {
    $output .= theme('flickr_block_photoset', $photosets[$i], $nsid, $size);
  }
  return $output;
}