function asset_widget_image_default_styles in Asset 7
Implements hook_image_default_styles().
File
- modules/
asset_widget/ asset_widget.module, line 917 - Code for the Asset widget module.
Code
function asset_widget_image_default_styles() {
$styles = array();
// Exported image style: asset_image_widget_search.
$styles['asset_image_widget_search'] = array(
'name' => 'asset_image_widget_search',
'effects' => array(
0 => array(
'label' => 'Scale and crop',
'help' => 'Scale and crop will maintain the aspect-ratio of the original image, then crop the larger dimension. This is most useful for creating perfectly square thumbnails without stretching the image.',
'effect callback' => 'image_scale_and_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
'name' => 'image_scale_and_crop',
'data' => array(
'width' => '100',
'height' => '100',
),
'weight' => '1',
),
),
);
// Exported image style: asset_image_widget_search_tooltip.
$styles['asset_image_widget_search_tooltip'] = array(
'name' => 'asset_image_widget_search_tooltip',
'module' => 'asset_widget',
'effects' => array(
0 => array(
'label' => 'Scale',
'help' => 'Scaling will maintain the aspect-ratio of the original image. If only a single dimension is specified, the other dimension will be calculated.',
'effect callback' => 'image_scale_effect',
'dimensions callback' => 'image_scale_dimensions',
'form callback' => 'image_scale_form',
'summary theme' => 'image_scale_summary',
'module' => 'image',
'name' => 'image_scale',
'data' => array(
'width' => '300',
'height' => '300',
'upscale' => 0,
),
'weight' => '1',
),
),
);
return $styles;
}