function responsive_menus_glob_files in Responsive Menus 7
Recursively search through directories for files with given extension.
Parameters
string $directory: Directory to search.
string $extension: File extensions to look for.
Return value
array Array of matching files.
1 call to responsive_menus_glob_files()
- responsive_menus_execute in ./
responsive_menus.module - Final execution for Responsive Menus. Add any js/css and settings required.
File
- ./
responsive_menus.module, line 1185 - Responsify menus in Drupal.
Code
function responsive_menus_glob_files($directory, $extension) {
$directories = empty($directories) ? array() : $directories;
responsive_menus_glob_recursive($directory, $directories);
$files = array();
foreach ($directories as $directory) {
$files = array_merge($files, glob("{$directory}/*.{$extension}"));
}
return $files;
}