You are here

function modernizr_get_path in Modernizr 7.3

Same name and namespace in other branches
  1. 8 modernizr.module \modernizr_get_path()
  2. 7.2 modernizr.module \modernizr_get_path()

Returns the full path of modernizr, along with the filename.

Return value

string

6 calls to modernizr_get_path()
modernizr_generate_url in ./modernizr.admin.inc
Generates new Modernizr URL for admin interface Callback for 'admin/config/development/modernizr'.
modernizr_get_filename in ./modernizr.module
Helper function to fetch the active Modernizr library.
modernizr_get_version in ./modernizr.module
Guesses the modernizr library version.
modernizr_page_build in ./modernizr.module
Implements hook_page_build().
modernizr_requirements in ./modernizr.install
Implements hook_requirements().

... See full list

File

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

Code

function modernizr_get_path() {
  $path =& drupal_static(__FUNCTION__);
  if ($path === NULL) {

    // Get possible paths for the file.
    $paths = _modernizr_get_paths();

    // Scan directories for files
    $path = _modernizr_scan_for_library($paths);
  }
  return $path;
}