You are here

function _modernizr_info_missing_tests in Modernizr 7.3

Private function to look for missing Modernizr tests.

1 call to _modernizr_info_missing_tests()
modernizr_requirements in ./modernizr.install
Implements hook_requirements().

File

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

Code

function _modernizr_info_missing_tests() {
  $requested_tests = modernizr_api_list();
  $current_build = _modernizr_current_build();
  $missing_tests = array();
  if (is_null($current_build)) {

    // There is no installed version of Modernizr. Return all tests.
    return $requested_tests;
  }
  foreach ($requested_tests as $test => $test_info) {
    if (!in_array($test, $current_build)) {
      $missing_tests[$test] = $test_info;
    }
  }
  return $missing_tests;
}