function _system_is_incompatible

_system_is_incompatible(&$incompatible, $files, $file)

Recursively check compatibility.

Parameters

$incompatible: An associative array which at the end of the check contains all incompatible files as the keys, their values being TRUE.

$files: The set of files that will be tested.

$file: The file at which the check starts.

Return value

Returns TRUE if an incompatible file is found, NULL (no return value) otherwise.

File

modules/system/system.admin.inc, line 756
Admin page callbacks for the system module.

Code

function _system_is_incompatible(&$incompatible, $files, $file) {
  if (isset($incompatible[$file->name])) {
    return TRUE;
  }
  // Recursively traverse required modules, looking for incompatible modules.
  foreach ($file->requires as $requires) {
    if (isset($files[$requires]) && _system_is_incompatible($incompatible, $files, $files[$requires])) {
      $incompatible[$file->name] = TRUE;
      return TRUE;
    }
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.admin.inc/function/_system_is_incompatible/7.x