function _flickr_block_favorite_public in Flickr 6
Favorites block.
1 call to _flickr_block_favorite_public()
- flickr_block in block/
flickr_block.module - Implements hook_block().
File
- block/
flickr_block.module, line 645
Code
function _flickr_block_favorite_public($nsid, $show_n, $size, $media) {
$output = '';
if ($photos = flickr_favorites_get_public_list($nsid, 1, array(
'per_page' => $show_n,
'media' => $media,
))) {
foreach ($photos['photo'] as $photo) {
$output .= theme('flickr_block_photo', $photo, $size);
}
}
return $output;
}