You are here

function _flickr_block_recent in Flickr 6

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

File

block/flickr_block.module, line 466

Code

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