protected function FollowTestCase::_globStyleIconDir in Follow 7.2
1 call to FollowTestCase::_globStyleIconDir()
- FollowTestCase::_testIcons in tests/
follow.test
File
- tests/
follow.test, line 90 - Follow module tests.
Class
- FollowTestCase
- @file Follow module tests.
Code
protected function _globStyleIconDir(array $style) {
$path = trim(_follow_style_icon_path($style), '/');
$directory = DRUPAL_ROOT . "/{$path}";
$pattern = "{$directory}/*.png";
foreach (glob($pattern) as $filename) {
$files[] = str_replace($directory, '', $filename);
}
sort($files);
return $files;
}