function imagecache_testsuite_get_folders in ImageCache Actions 6.2
Same name and namespace in other branches
- 8 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
an array of foldernames of everything that implements imagecache_actions.
2 calls to imagecache_testsuite_get_folders()
- imagecache_testsuite_generate in tests/
imagecache_testsuite.module - Either returns the whole testsuite page or generates the requested image+preset
- imagecache_testsuite_get_tests in tests/
imagecache_testsuite.module - Retrieve the list of presets, each of which contain actions and action definitions.
File
- tests/
imagecache_testsuite.module, line 216
Code
function imagecache_testsuite_get_folders() {
$folders = array(
drupal_get_path('module', 'imagecache_testsuite'),
);
foreach (module_implements('imagecache_actions') as $module_name) {
$folders[] = drupal_get_path('module', $module_name) . '/tests';
}
return $folders;
}