You are here

function scald_dnd_library_imagecache_default_presets in Scald: Media Management made easy 6

Provides default ImageCache presets that can be overridden by site administrators.

Return value

array An array of imagecache preset definitions. Each definition can be generated by exporting a preset from the database. Each preset definition should be keyed on its presetname (for easier interaction with drupal_alter) and have the following attributes: "presetname": the imagecache preset name. Required. "actions": an array of action defintions for this preset. Required.

File

scald_dnd_library/scald_dnd_library.module, line 326
Scald DnD Library

Code

function scald_dnd_library_imagecache_default_presets() {
  $presets = array();
  $presets['Library'] = array(
    'presetname' => 'Library',
    'actions' => array(
      0 => array(
        'weight' => '0',
        'module' => 'imagecache',
        'action' => 'imagecache_scale',
        'data' => array(
          'width' => '48',
          'height' => '',
          'upscale' => 0,
        ),
      ),
    ),
  );
  return $presets;
}