function flickr_photo_sizes in Flickr 7
Same name and namespace in other branches
- 5 flickr.inc \flickr_photo_sizes()
- 6 flickr.inc \flickr_photo_sizes()
A list of possible photo sizes with description and label.
Return value
array An array of photo sizes.
9 calls to flickr_photo_sizes()
- flickrfield_field_formatter_info in field/
flickrfield.module - Implements hook_field_formatter_info().
- flickrfield_field_formatter_view in field/
flickrfield.module - Implements hook_field_formatter_view(). @todo: the theme definitions for our field-formatters should be removed from flickrfield_theme() and implemented here @ see https://drupal.org/node/728792 (section "Changed! Hook Formatter")
- flickrfield_field_info in field/
flickrfield.module - Implements hook_field_info().
- flickrfield_theme in field/
flickrfield.module - Implements hook_theme(). @todo: the theme definitions for our field-formatters should go in flickrfield_field_formatter_view() @ see https://drupal.org/node/728792 (section "Changed! Hook Formatter")
- flickr_album in ./
flickr.inc - Render multiple photos as an album.
File
- ./
flickr.inc, line 17 - The Flickr API functions.
Code
function flickr_photo_sizes() {
return array(
's' => array(
'label' => 'Square',
'description' => t('s: 75 px square'),
),
't' => array(
'label' => 'Thumbnail',
'description' => t('t: 100px on longest side'),
),
'q' => array(
'label' => 'Large Square',
'description' => t('q: 150px square'),
),
'm' => array(
'label' => 'Small',
'description' => t('m: 240px on longest side'),
),
'n' => array(
'label' => 'Small 320',
'description' => t('n: 320px on longest side'),
),
'-' => array(
'label' => 'Medium',
'description' => t('-: 500px on longest side'),
),
'z' => array(
'label' => 'Medium 640',
'description' => t('z: 640px on longest side'),
),
'c' => array(
'label' => 'Medium 800',
'description' => t('c: 800px on longest side'),
),
'b' => array(
'label' => 'Large',
'description' => t('b: 1024px on longest side'),
),
'h' => array(
'label' => 'Large 1600',
'description' => t('h: 1600px on longest side'),
),
'k' => array(
'label' => 'Large 2048',
'description' => t('k: 2048px on longest side'),
),
'o' => array(
'label' => 'Original',
'description' => t('o: Original image'),
),
'x' => array(
'label' => 'slideshow',
'description' => t('x: Full featured responsive slideshow (for group, set and user IDs only)'),
),
'y' => array(
'label' => 'Simple slideshow',
'description' => t('y: Basic responsive slideshow (for set and user IDs only)'),
),
);
}