You are here

function imagecache_testsuite_image_default_styles in ImageCache Actions 8

Same name and namespace in other branches
  1. 7 tests/imagecache_testsuite.module \imagecache_testsuite_image_default_styles()

Implements hook_image_default_styles().

Lists all our individual test cases and makes them available as enabled styles

File

tests/imagecache_testsuite.module, line 302

Code

function imagecache_testsuite_image_default_styles() {
  $styles = imagecache_testsuite_get_tests();

  // Need to filter out the invalid test cases
  // (ones that use unavailable actions)
  // or the core complains with notices.
  //  foreach ($styles as $id => $style) {
  //    foreach ($style['effects'] as $delta => $action) {
  //      if (!empty($action['module']) && ($action['module'] != 'imagecache') && !module_exists($action['module'])) {
  //        unset($styles[$id]);
  //        break;
  //      }
  //    }
  //  }
  return $styles;
}