| 7 image.module | image_image_default_styles() |
Implements hook_image_default_styles().
File
- modules/
image/ image.module, line 340 - Exposes global functionality for creating image styles.
Code
function image_image_default_styles() {
$styles = array();
$styles['thumbnail'] = array(
'effects' => array(
array(
'name' => 'image_scale',
'data' => array(
'width' => 100,
'height' => 100,
'upscale' => 1,
),
'weight' => 0,
),
),
);
$styles['medium'] = array(
'effects' => array(
array(
'name' => 'image_scale',
'data' => array(
'width' => 220,
'height' => 220,
'upscale' => 1,
),
'weight' => 0,
),
),
);
$styles['large'] = array(
'effects' => array(
array(
'name' => 'image_scale',
'data' => array(
'width' => 480,
'height' => 480,
'upscale' => 0,
),
'weight' => 0,
),
),
);
return $styles;
}
Login or register to post comments