You are here

function cloud_zoom_settings_info in Cloud Zoom 7

Same name and namespace in other branches
  1. 8 cloud_zoom.module \cloud_zoom_settings_info()

Get all Cloud zoom settings info.

Array keyed with Cloud zoom's option name, and array of values:

  • title: The human readable name of the option.
  • id: The cloud zoom option ID. If FALSE it means it should not be added to the "rel" in the HTML.
  • description: Settings description.
  • default_value - Default value of setting.
  • form_type - The form element type displayed in the settings page.
6 calls to cloud_zoom_settings_info()
cloud_zoom_field_formatter_info in ./cloud_zoom.module
Implements hook_field_formatter()
cloud_zoom_field_formatter_settings_form in ./cloud_zoom.module
Implements hook_field_formatter_settings_form().
cloud_zoom_field_formatter_settings_summary in ./cloud_zoom.module
Implements hook_field_formatter_settings_summary().
cloud_zoom_field_formatter_view in ./cloud_zoom.module
Implements hook_field_formatter_view().
cloud_zoom_get_rel_string in ./cloud_zoom.module
Build rel string.

... See full list

File

./cloud_zoom.module, line 158
This module integrates the Cloud Zoom JQuery library from: http://www.professorcloud.com/mainsite/cloud-zoom.htm

Code

function cloud_zoom_settings_info() {
  $settings = array(
    'slide_style' => array(
      'title' => t('Slide image style'),
      'id' => FALSE,
      'description' => '',
      'default_value' => 0,
      'form_type' => 'select',
    ),
    'zoom_style' => array(
      'title' => t('Zoom area image style'),
      'id' => FALSE,
      'description' => '',
      'default_value' => 0,
      'form_type' => 'select',
    ),
    'gallery_fieldset' => array(
      'title' => t('Gallery settings'),
      'id' => FALSE,
      'description' => t('Gallery mode settings'),
      'default_value' => FALSE,
      'form_type' => 'fieldset',
    ),
    'gallery_mode' => array(
      'title' => t('Gallery mode'),
      'id' => FALSE,
      'description' => t('Set formatter as gallery mode with thumbs'),
      'default_value' => FALSE,
      'form_type' => 'checkbox',
      'fieldset' => 'gallery_fieldset',
    ),
    'thumb_style' => array(
      'title' => t('Thumbnails image style'),
      'id' => FALSE,
      'description' => '',
      'default_value' => 0,
      'form_type' => 'select',
      'fieldset' => 'gallery_fieldset',
    ),
    'zoom_position_fieldset' => array(
      'title' => t('Zoom area position'),
      'id' => FALSE,
      'description' => t('Zoom area location settings'),
      'default_value' => FALSE,
      'form_type' => 'fieldset',
    ),
    'zoom_width' => array(
      'title' => t('Zoom width'),
      'id' => 'zoomWidth',
      'description' => t("The width of the zoom window in pixels.</br> If 'auto' is specified, the width will be the same as the small image."),
      'default_value' => 'auto',
      'form_type' => 'textfield',
      'fieldset' => 'zoom_position_fieldset',
      'add_quote' => TRUE,
    ),
    'zoom_height' => array(
      'title' => t('Zoom height'),
      'id' => 'zoomHeight',
      'description' => t("The height of the zoom window in pixels.</br> If 'auto' is specified, the height will be the same as the small image."),
      'default_value' => 'auto',
      'form_type' => 'textfield',
      'fieldset' => 'zoom_position_fieldset',
      'add_quote' => TRUE,
    ),
    'position' => array(
      'title' => t('Position'),
      'id' => 'position',
      'description' => t("Specifies the position of the zoom window relative to the small image.</br> Allowable values are 'left', 'right', 'top', 'bottom', 'inside',</br> or you can specifiy the id of an html element to place the zoom window in e.g. position: 'element1"),
      'default_value' => 'right',
      'form_type' => 'textfield',
      'fieldset' => 'zoom_position_fieldset',
      'add_quote' => TRUE,
    ),
    'adjust_x' => array(
      'title' => t('Adjust X'),
      'id' => 'adjustX',
      'description' => t('Allows you to fine tune the x-position of the zoom window in pixels.'),
      'default_value' => 0,
      'form_type' => 'textfield',
      'fieldset' => 'zoom_position_fieldset',
      'add_quote' => FALSE,
    ),
    'adjust_y' => array(
      'title' => t('Adjust Y'),
      'id' => 'adjustY',
      'description' => t('Allows you to fine tune the y-position of the zoom window in pixels.'),
      'default_value' => 0,
      'form_type' => 'textfield',
      'fieldset' => 'zoom_position_fieldset',
      'add_quote' => FALSE,
    ),
    'zoom_style_fieldset' => array(
      'title' => t('Zoom style'),
      'id' => FALSE,
      'description' => t('Zoom area styling and effects settings'),
      'default_value' => FALSE,
      'form_type' => 'fieldset',
    ),
    'tint' => array(
      'title' => t('Tint'),
      'id' => 'tint',
      'description' => t("Specifies a tint colour which will cover the small image.</br> Colours should be specified in hex format,</br> e.g. '#aa00aa'. Does not work with softFocus."),
      'default_value' => 'false',
      'form_type' => 'textfield',
      'fieldset' => 'zoom_style_fieldset',
      'add_quote' => TRUE,
    ),
    'tint_opacity' => array(
      'title' => t('Tint opacity'),
      'id' => 'tintOpacity',
      'description' => t('Opacity of the tint, where 0 is fully transparent, and 1 is fully opaque.'),
      'default_value' => 0.5,
      'form_type' => 'textfield',
      'fieldset' => 'zoom_style_fieldset',
      'add_quote' => TRUE,
    ),
    'lens_opacity' => array(
      'title' => t('Lens opacity'),
      'id' => 'lensOpacity',
      'description' => t('Opacity of the lens mouse pointer, where 0 is fully transparent,</br> and 1 is fully opaque. In tint and soft-focus modes, it will always be transparent.'),
      'default_value' => 0.5,
      'form_type' => 'textfield',
      'fieldset' => 'zoom_style_fieldset',
      'add_quote' => TRUE,
    ),
    'soft_focus' => array(
      'title' => t('Soft focus'),
      'id' => 'softFocus',
      'description' => t('Applies a subtle blur effect to the small image.</br> Set to true or false. Does not work with tint.'),
      'default_value' => FALSE,
      'form_type' => 'checkbox',
      'fieldset' => 'zoom_style_fieldset',
    ),
    'smooth_move' => array(
      'title' => t('Smooth move'),
      'id' => 'smoothMove',
      'description' => t('Amount of smoothness/drift of the zoom image as it moves.</br> The higher the number, the smoother/more drifty the movement will be. 1 = no smoothing.'),
      'default_value' => 3,
      'form_type' => 'textfield',
      'fieldset' => 'zoom_style_fieldset',
      'add_quote' => TRUE,
    ),
    'Show title' => array(
      'title' => t('Show title'),
      'id' => 'showTitle',
      'description' => t('Shows the title tag of the image. True or false.'),
      'default_value' => TRUE,
      'form_type' => 'checkbox',
      'fieldset' => 'zoom_style_fieldset',
    ),
    'title_opacity' => array(
      'title' => t('Title opacity'),
      'id' => 'titleOpacity',
      'description' => t('Specifies the opacity of the title if displayed,</br> where 0 is fully transparent, and 1 is fully opaque.'),
      'default_value' => 0.5,
      'form_type' => 'textfield',
      'fieldset' => 'zoom_style_fieldset',
      'add_quote' => TRUE,
    ),
  );
  if (module_exists('colorbox')) {
    $settings['colorbox'] = array(
      'title' => t('Open details in Colorbox'),
      'id' => FALSE,
      'description' => t('Show the image in colorbox on click (requires the colorbox.module)'),
      'default_value' => FALSE,
      'form_type' => 'checkbox',
      'fieldset' => 'zoom_style_fieldset',
    );
  }
  return $settings;
}