function imagecache_testsuite_get_folders in ImageCache Actions 8
Same name and namespace in other branches
- 6.2 tests/imagecache_testsuite.module \imagecache_testsuite_get_folders()
- 7 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;
}