You are here

function flickr_photo_sizes in Flickr 5

Same name and namespace in other branches
  1. 6 flickr.inc \flickr_photo_sizes()
  2. 7 flickr.inc \flickr_photo_sizes()

Return a list of all possible photo sizes with the right description and label

Return value

An array of photo sizes

4 calls to flickr_photo_sizes()
flickrfield_field_formatter_info in field/flickrfield.module
Implementation of hook_field_formatter_info().
flickr_block in block/flickr_block.module
Implementation of hook_block().
flickr_filter_tips in filter/flickr_filter.module
flickr_img in ./flickr.inc
This function will try to create a html image tag referencing the Flickr photo with the desired size if that size is available for this photo.

File

./flickr.inc, line 11

Code

function flickr_photo_sizes() {
  return array(
    's' => array(
      'label' => 'Square',
      'description' => t('75x75 pixel square'),
    ),
    't' => array(
      'label' => 'Thumbnail',
      'description' => t('100 pixels on longest side'),
    ),
    'm' => array(
      'label' => 'Small',
      'description' => t('240 pixels on longest side'),
    ),
    '-' => array(
      'label' => 'Medium',
      'description' => t('500 pixels on longest side'),
    ),
    'b' => array(
      'label' => 'Large',
      'description' => t('1024 pixels on longest side'),
    ),
    'o' => array(
      'label' => 'Original',
      'description' => t('Original image'),
    ),
  );
}