You are here

function node_gallery_field_formatter_info in Node Gallery 6.3

Implementation of CCK's hook_field_formatter_info().

File

./node_gallery.module, line 1244
Node gallery module file.

Code

function node_gallery_field_formatter_info() {
  $formatters = array();
  foreach (imagecache_presets() as $preset) {
    $formatters[$preset['presetname'] . '_nextimagelink'] = array(
      'label' => t('@preset linked to next image', array(
        '@preset' => $preset['presetname'],
      )),
      'field types' => array(
        'image',
        'filefield',
      ),
      'description' => t('Displays images and links them to the next image in the gallery.'),
    );
    $formatters[$preset['presetname'] . '_gallerylink'] = array(
      'label' => t('@preset linked to gallery', array(
        '@preset' => $preset['presetname'],
      )),
      'field types' => array(
        'image',
        'filefield',
      ),
      'description' => t('Displays images and links them to the gallery.'),
    );
  }
  return $formatters;
}