You are here

function hook_imagezoom_settings_alter in Image Zoom 8.3

Same name and namespace in other branches
  1. 8.2 imagezoom.api.php \hook_imagezoom_settings_alter()
  2. 7.2 imagezoom.api.php \hook_imagezoom_settings_alter()

Change settings for the elevateZoom Plus plugin.

For all available settings, see http://igorlino.github.io/elevatezoom-plus/api.htm.

Parameters

array $settings: A array of settings keyed by the setting name.

array $context: An array containing information about the field and instance being rendered.

2 invocations of hook_imagezoom_settings_alter()
ImageZoomFormatter::viewElements in src/Plugin/Field/FieldFormatter/ImageZoomFormatter.php
Builds a renderable array for a field value.
ImageZoomGalleryFormatter::viewElements in src/Plugin/Field/FieldFormatter/ImageZoomGalleryFormatter.php
Builds a renderable array for a field value.

File

./imagezoom.api.php, line 18
Hook documentation for the Image Zoom module.

Code

function hook_imagezoom_settings_alter(array &$settings, array $context) {

  // Change the border color to red.
  $settings['borderColour'] = '#f00';
}