View source
<?php
function openpublic_base_fields_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return array(
"version" => "1",
);
}
}
function openpublic_base_fields_image_default_styles() {
$styles = array();
$styles['content_detail_photo'] = array(
'name' => 'content_detail_photo',
'effects' => array(
1 => 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' => 285,
'height' => '',
'upscale' => 0,
),
'weight' => 1,
),
),
'label' => 'content_detail_photo',
);
$styles['list-page-thumbnail'] = array(
'name' => 'list-page-thumbnail',
'effects' => array(
1 => 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' => 95,
'height' => 95,
),
'weight' => 1,
),
),
'label' => 'list-page-thumbnail',
);
$styles['logo'] = array(
'name' => 'logo',
'effects' => array(
1 => 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' => '',
'height' => 120,
'upscale' => 1,
),
'weight' => 1,
),
),
'label' => 'logo',
);
$styles['logo-small'] = array(
'name' => 'logo-small',
'effects' => array(
2 => 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' => '',
'height' => 60,
'upscale' => 0,
),
'weight' => 1,
),
),
'label' => 'logo-small',
);
$styles['right-sidebar-thumbnails'] = array(
'name' => 'right-sidebar-thumbnails',
'effects' => array(
1 => 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' => 80,
'height' => 80,
),
'weight' => 1,
),
),
'label' => 'right-sidebar-thumbnails',
);
return $styles;
}