You are here

function adaptive_image_effect_settings in Adaptive Image 7

Get adaptive image effect from style settings

2 calls to adaptive_image_effect_settings()
adaptive_image_preprocess_image in ./adaptive_image.module
Implements template_preprocess_image().
adaptive_image_style_deliver in ./adaptive_image.image.inc
Copy of image_style_deliver() for use with adaptive images.

File

./adaptive_image.module, line 225
Adaptive Image - Adaptive images for Drupal

Code

function adaptive_image_effect_settings($style) {
  $settings = array();
  foreach ($style['effects'] as $effect) {
    if ($effect['name'] == 'adaptive_image') {
      $settings = $effect['data'];
    }
  }
  return $settings;
}