You are here

function lightgallery_field_formatter_info in Lightgallery 7

Implements hook_field_formatter_info().

File

includes/lightgallery.field.inc, line 12
Contains all hooks and related methods for the lightgallery_formatter field formatter.

Code

function lightgallery_field_formatter_info() {
  return array(
    'lightgallery' => array(
      'label' => t('Lightgallery'),
      'field types' => array(
        'image',
      ),
      'settings' => array(
        'image_styles' => array(
          'lightgallery_image_style' => NULL,
          'lightgallery_image_thumb_style' => NULL,
        ),
        'lightgallery_core' => array(
          'mode' => 'lg-slide',
          'preload' => 1,
          'closable' => TRUE,
          'loop' => TRUE,
          'esc_key' => TRUE,
          'key_press' => TRUE,
          'controls' => TRUE,
          'mouse_wheel' => TRUE,
          'download' => TRUE,
          'counter' => TRUE,
          'drag' => TRUE,
          'touch' => TRUE,
          'selector' => FALSE,
        ),
        'lightgallery_thumbs' => array(
          'thumbnails' => TRUE,
          'animate_thumb' => TRUE,
          'current_pager_position' => 'middle',
          'thumb_width' => 100,
          'thumb_cont_height' => 100,
        ),
      ),
    ),
  );
}