You are here

function slick_extract_image_data in Slick Carousel 7.2

Extracts the needed image data.

@deprecated, merged into slick_get_image() to reduce function calls.

File

includes/slick.global.inc, line 354
Global functions across Slick field formatters and Views.

Code

function slick_extract_image_data($settings, &$media = array(), &$slide = array(), $item = array()) {
  if (!empty($settings['image_style']) && !isset($media['_dimensions'])) {
    slick_get_dimensions($media, $settings['image_style']);
  }
  foreach (array(
    'alt',
    'title',
    'uri',
    'type',
    'height',
    'width',
  ) as $data) {
    $media[$data] = isset($media[$data]) ? $media[$data] : (isset($item[$data]) ? $item[$data] : NULL);
  }
}