You are here

function imagecache_testsuite_get_folders in ImageCache Actions 7

Same name and namespace in other branches
  1. 8 tests/imagecache_testsuite.module \imagecache_testsuite_get_folders()
  2. 6.2 tests/imagecache_testsuite.module \imagecache_testsuite_get_folders()

Places to scan for test presets and sample images.

Return value

array an array of folder names of everything that implements imagecache_actions.

2 calls to imagecache_testsuite_get_folders()
imagecache_testsuite_get_tests in tests/imagecache_testsuite.module
Retrieve the list of presets, each of which contain actions and action definitions.
imagecache_testsuite_page in tests/imagecache_testsuite.module
Returns the test suite page.

File

tests/imagecache_testsuite.module, line 354

Code

function imagecache_testsuite_get_folders() {
  $folders = array(
    drupal_get_path('module', 'imagecache_testsuite'),
  );
  foreach (module_implements('image_effect_info') as $module_name) {
    $folders[] = drupal_get_path('module', $module_name) . '/tests';
  }
  return $folders;
}