function iek_image_default_styles in Image effect kit 7
Implements hook_image_default_styles().
Creates a default image style.
File
- ./
iek.module, line 84 - Primarily Drupal hooks and global API functions to manipulate image styles.
Code
function iek_image_default_styles() {
$styles = array();
$styles['iek_photo'] = array(
'label' => 'IEK - Photo',
'effects' => array(
array(
'name' => 'iek_image_padding',
'data' => array(
'padding_top' => 10,
'padding_right' => 10,
'padding_bottom' => 10,
'padding_left' => 10,
'bg_color' => '#ffffff',
),
'weight' => 4,
),
array(
'name' => 'iek_image_watermark',
'data' => array(
'text' => variable_get('site_name', t('Watermark')),
'font' => 'tuffy_bold',
'color' => '#ffffff',
'size' => 30,
'angle' => 0,
'position' => 'bottom_center',
'padding_top' => 10,
'padding_right' => 10,
'padding_bottom' => 10,
'padding_left' => 10,
),
'weight' => 3,
),
array(
'name' => 'iek_image_overlay',
'data' => array(
'overlay_name' => 'basic_dropshadow_001_1024x768',
'overlay_offset' => 20,
'bg_offset' => 0,
),
'weight' => 10,
),
),
);
return $styles;
}