array( 'name' => 'Resize', 'description' => 'Resize an image to an exact set of dimensions, ignoring aspect ratio.', ), ); } /** * Provides default ImageCache presets that can be overridden by site * administrators. * * @return 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. */ function hook_imagecache_default_presets() { $presets = array(); $presets['thumbnail'] = array ( 'presetname' => 'thumbnail', 'actions' => array ( 0 => array ( 'weight' => '0', 'module' => 'imagecache', 'action' => 'imagecache_scale_and_crop', 'data' => array ( 'width' => '60', 'height' => '60', ), ), ), ); return $presets; }