You are here

function flexslider_image_default_styles in Flex Slider 7.2

Same name and namespace in other branches
  1. 7 flexslider.module \flexslider_image_default_styles()

Implements hook_image_default_styles().

File

./flexslider.module, line 184
A light-weight, customizable image gallery plugin for Drupal based on jQuery

Code

function flexslider_image_default_styles() {
  $styles = array();

  // Default image preset for FlexSlider
  $styles['flexslider_full'] = array(
    'effects' => array(
      array(
        'name' => 'image_scale_and_crop',
        'data' => array(
          'width' => 800,
          'height' => 500,
        ),
        'weight' => 0,
      ),
    ),
  );

  // Default image preset for FlexSlider thumbnails
  $styles['flexslider_thumbnail'] = array(
    'effects' => array(
      array(
        'name' => 'image_scale_and_crop',
        'data' => array(
          'width' => 160,
          'height' => 100,
        ),
        'weight' => 0,
      ),
    ),
  );
  return $styles;
}