You are here

function slick_field_formatter_info in Slick Carousel 7

Implements hook_field_formatter_info().

File

./slick.module, line 33
Slick carousel for Drupal.

Code

function slick_field_formatter_info() {
  $info = array(
    'slick' => array(
      'label' => t('Slick carousel'),
      'field types' => array(
        'image',
        'field_collection',
      ),
      'settings' => array(
        'slick_image_style' => 'thumbnail',
      ),
    ),
  );

  // Add slick options as defaults.
  $options = slick_get_options();
  foreach ($options as $name => $values) {
    $info['slick']['settings'][$name] = $values['default'];
  }
  return $info;
}