You are here

function galleryformatter_imagecache_default_presets in Gallery formatter 6

1 call to galleryformatter_imagecache_default_presets()
galleryformatter_getimage_dimensions in ./galleryformatter.module
Helper function to get dimensions of an image

File

includes/galleryformatter_imagecache.inc, line 11
Provides default ImageCache presets that can be overridden by site administrators.

Code

function galleryformatter_imagecache_default_presets() {
  $presets = array();
  $presets['galleryformatter_slide'] = array(
    'presetname' => 'galleryformatter_slide',
    'actions' => array(
      0 => array(
        'weight' => '0',
        'module' => 'galleryformatter',
        'action' => 'imagecache_scale_and_crop',
        'data' => array(
          'width' => '500',
          'height' => '312',
        ),
      ),
    ),
  );
  $presets['galleryformatter_thumb'] = array(
    'presetname' => 'galleryformatter_thumb',
    'actions' => array(
      0 => array(
        'weight' => '0',
        'module' => 'galleryformatter',
        'action' => 'imagecache_scale_and_crop',
        'data' => array(
          'width' => '121',
          'height' => '75',
        ),
      ),
    ),
  );
  return $presets;
}