summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Auditor2012-02-24 14:35:42 (GMT)
committer Stefan Auditor2012-02-24 14:35:42 (GMT)
commitadaa993fc6f0844ce76b0ff01da25ff4df7cf662 (patch)
treec189c653212de8101ed15e1bb868ff8799fb5257
parentb585f37382ecfb2a3e584c986cdd31863951799e (diff)
by sanduhrs: cleaning up function to check whether the adaptive effect is contained7.x-1.4
-rw-r--r--adaptive_image.module6
1 files changed, 2 insertions, 4 deletions
diff --git a/adaptive_image.module b/adaptive_image.module
index 505d9c1..a3c4b5a 100644
--- a/adaptive_image.module
+++ b/adaptive_image.module
@@ -189,14 +189,12 @@ function adaptive_image_preprocess_image(&$variables) {
* Check for adaptive image effect from style
*/
function adaptive_image_contains_effect($style) {
- $found = FALSE;
foreach ($style['effects'] as $effect) {
if ($effect['name'] == 'adaptive_image') {
- $found = TRUE;
- $settings = $effect['data'];
+ return TRUE;
}
}
- return $found;
+ return FALSE;
}
/**