You are here

function flickr_photo_sizes in Flickr 6

Same name and namespace in other branches
  1. 5 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

5 calls to flickr_photo_sizes()
flickrfield_field_formatter_info in field/flickrfield.module
Implements hook_field_formatter_info().
flickrfield_theme in field/flickrfield.module
Implements hook_theme().
flickr_block in block/flickr_block.module
Implements 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 201

Code

function flickr_photo_sizes() {
  return array(
    's' => array(
      'label' => 'Square',
      'description' => t('75 px square'),
    ),
    't' => array(
      'label' => 'Thumbnail',
      'description' => t('100 px on longest side'),
    ),
    'q' => array(
      'label' => 'Large Square',
      'description' => t('150 px square'),
    ),
    'm' => array(
      'label' => 'Small',
      'description' => t('240 px on longest side'),
    ),
    'n' => array(
      'label' => 'Small 320',
      'description' => t('320 px on longest side'),
    ),
    '-' => array(
      'label' => 'Medium',
      'description' => t('500 px on longest side'),
    ),
    'z' => array(
      'label' => 'Medium 640',
      'description' => t('640 px on longest side'),
    ),
    'c' => array(
      'label' => 'Medium 800',
      'description' => t('800 px on longest side'),
    ),
    'b' => array(
      'label' => 'Large',
      'description' => t('1024 px on longest side'),
    ),
    'h' => array(
      'label' => 'Large 1600',
      'description' => t('1600 px on longest side'),
    ),
    'k' => array(
      'label' => 'Large 2048',
      'description' => t('2048 px on longest side'),
    ),
    'o' => array(
      'label' => 'Original',
      'description' => t('Original image'),
    ),
  );
}