You are here

function adaptive_image_contains_effect in Adaptive Image 7

Check for adaptive image effect from style

1 call to adaptive_image_contains_effect()
adaptive_image_preprocess_image in ./adaptive_image.module
Implements template_preprocess_image().

File

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

Code

function adaptive_image_contains_effect($style) {
  foreach ($style['effects'] as $effect) {
    if ($effect['name'] == 'adaptive_image') {
      return TRUE;
    }
  }
  return FALSE;
}