function _modernizr_scan_for_library in Modernizr 7.3
Same name and namespace in other branches
- 8 modernizr.module \_modernizr_scan_for_library()
Helper function to scan for acceptably named libraries
1 call to _modernizr_scan_for_library()
- modernizr_get_path in ./
modernizr.module - Returns the full path of modernizr, along with the filename.
File
- ./
modernizr.module, line 291 - Main module file for Modernizr
Code
function _modernizr_scan_for_library($paths) {
$path = '';
if (is_array($paths) && !empty($paths)) {
foreach ($paths as $p) {
if ($files = file_scan_directory($p, MODERNIZR_FILENAME_REGEX)) {
$path = reset($files)->uri;
break;
}
}
}
return $path;
}