You are here

function _flickr_block_recent in Flickr 5

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

File

block/flickr_block.module, line 154

Code

function _flickr_block_recent($nsid, $show_n, $size) {
  $output = '';
  if ($photos = flickr_photos_search($nsid, 1, array(
    'per_page' => $show_n,
  ))) {
    foreach ($photos['photo'] as $photo) {
      $output .= theme('flickr_block_photo', $photo, $size);
    }
  }
  return $output;
}