function _cloud_zoom_default_settings in Cloud Zoom 6
Private function for the default settings
3 calls to _cloud_zoom_default_settings()
- cloud_zoom_admin_preset_edit_form in ./
cloud_zoom.admin.inc - The edit form callback - provides editable fields for all the "default" options
- cloud_zoom_admin_preset_edit_form_submit_save in ./
cloud_zoom.admin.inc - Submit handler for the save button - this saves any settings which differ from the defaults. If there are no differing options, the sub-section is removed.
- theme_cloud_zoom_formatter_imagefield in ./
cloud_zoom.theme.inc - Theme handler for the cloud_zoom effect
File
- ./
cloud_zoom.module, line 193 - This module integrates the Cloud Zoom JQuery library from: http://www.professorcloud.com/mainsite/cloud-zoom.htm
Code
function _cloud_zoom_default_settings() {
return array(
'zoomWidth' => array(
'default' => 'auto',
'quoted' => TRUE,
'description' => 'The width of the zoom window in pixels. If \'auto\' is specified, the width will be the same as the small image.',
),
'zoomHeight' => array(
'default' => 'auto',
'quoted' => TRUE,
'description' => 'The height of the zoom window in pixels. If \'auto\' is specified, the height will be the same as the small image.',
),
'position' => array(
'default' => 'right',
'quoted' => TRUE,
'description' => 'Specifies the position of the zoom window relative to the small image. <br />Allowable values are \'left\', \'right\', \'top\', \'bottom\', \'inside\' or you can specifiy the id of an html element to place the zoom window in e.g. position: \'element1\'',
),
'adjustX' => array(
'default' => 0,
'quoted' => FALSE,
'description' => 'Allows you to fine tune the x-position of the zoom window in pixels.',
),
'adjustY' => array(
'default' => 0,
'quoted' => FALSE,
'description' => 'Allows you to fine tune the y-position of the zoom window in pixels.',
),
'tint' => array(
'default' => 'false',
'quoted' => FALSE,
'description' => 'Specifies a tint colour which will cover the small image. Colours should be specified in hex format, e.g. \'#aa00aa\'. Does not work with softFocus.',
),
'tintOpacity' => array(
'default' => 0.5,
'quoted' => FALSE,
'description' => 'Opacity of the tint, where 0 is fully transparent, and 1 is fully opaque.',
),
'lensOpacity' => array(
'default' => 0.5,
'quoted' => FALSE,
'description' => 'Opacity of the lens mouse pointer, where 0 is fully transparent, and 1 is fully opaque. In tint and soft-focus modes, it will always be transparent.',
),
'softFocus' => array(
'default' => 'false',
'quoted' => FALSE,
'description' => 'Applies a subtle blur effect to the small image. Set to true or false. Does not work with tint.',
),
'smoothMove' => array(
'default' => 3,
'quoted' => FALSE,
'description' => 'Amount of smoothness/drift of the zoom image as it moves. The higher the number, the smoother/more drifty the movement will be. 1 = no smoothing.',
),
'showTitle' => array(
'default' => 'true',
'quoted' => FALSE,
'description' => 'Shows the title tag of the image. True or false.',
),
'titleOpacity' => array(
'default' => 0.5,
'quoted' => FALSE,
'description' => 'Specifies the opacity of the title if displayed, where 0 is fully transparent, and 1 is fully opaque.',
),
);
}