function dynamic_background_imagecache_default_presets in Dynamic Background 6
Implementation of hook_imagecache_default_presets().
File
- includes/
upload.form.inc, line 118 - The functions here is used to create an new form element (background_upload_form), which can be used to upload images. It also gives the possibility to flag a image for deletion or active background image.
Code
function dynamic_background_imagecache_default_presets() {
$presets = array(
'dynamic_background_thumb' => array(
'presetname' => 'dynamic_background_thumb',
'actions' => array(
'0' => array(
'weight' => '0',
'module' => 'imagecache',
'action' => 'imagecache_scale_and_crop',
'data' => array(
'width' => '100',
'height' => '100',
),
),
),
),
);
return $presets;
}