You are here

function cloud_zoom_field_formatter_info in Cloud Zoom 6

Same name and namespace in other branches
  1. 8 cloud_zoom.module \cloud_zoom_field_formatter_info()
  2. 7 cloud_zoom.module \cloud_zoom_field_formatter_info()

Implementation of hook_field_formatter().

File

./cloud_zoom.module, line 105
This module integrates the Cloud Zoom JQuery library from: http://www.professorcloud.com/mainsite/cloud-zoom.htm

Code

function cloud_zoom_field_formatter_info() {
  $formatters = array();
  $settings = cloud_zoom_get_settings();
  foreach ($settings as $key => $values) {
    $formatters['imagefield__cloud_zoom__' . $key] = array(
      'label' => t('Cloud Zoom: !presetname', array(
        '!presetname' => $key,
      )),
      'field types' => array(
        'filefield',
      ),
    );
  }
  return $formatters;
}