You are here

function _modernizr_get_paths in Modernizr 7.3

Helper function to scan for acceptably named libraries

2 calls to _modernizr_get_paths()
modernizr_generate_url in ./modernizr.admin.inc
Generates new Modernizr URL for admin interface Callback for 'admin/config/development/modernizr'.
modernizr_get_path in ./modernizr.module
Returns the full path of modernizr, along with the filename.

File

./modernizr.module, line 232
Main module file for Modernizr

Code

function _modernizr_get_paths() {
  $paths =& drupal_static(__FUNCTION__);
  if ($paths === NULL) {
    $paths = array();
    foreach (_modernizr_library_search_paths() as $search_path) {
      $library_path = $search_path . '/modernizr';
      if (file_exists($library_path)) {
        $paths[] = $library_path;
      }
    }
  }
  return $paths;
}