You are here

function flickrfield_field_formatter_info in Flickr 5

Same name and namespace in other branches
  1. 6 field/flickrfield.module \flickrfield_field_formatter_info()
  2. 7 field/flickrfield.module \flickrfield_field_formatter_info()

Implementation of hook_field_formatter_info().

File

field/flickrfield.module, line 138
Defines a Flickr field type.

Code

function flickrfield_field_formatter_info() {
  require_once drupal_get_path('module', 'flickr') . '/flickr.inc';
  foreach (flickr_photo_sizes() as $size => $info) {
    $formatters[$size] = array(
      'label' => $info['label'],
      'field types' => array(
        'flickrfield',
      ),
    );
  }
  return $formatters;
}