function update_extra_requirements

8.0.x update_7.inc update_extra_requirements($requirements = NULL)
6.x update.inc update_extra_requirements($requirements = NULL)
6.x update_7.inc update_extra_requirements($requirements = NULL)
7.x update_7.inc update_extra_requirements($requirements = NULL)
3.x update_7.inc update_extra_requirements($requirements = NULL)
4.x update.inc update_extra_requirements($requirements = NULL)
5.x update.inc update_extra_requirements($requirements = NULL)
5.x update_7.inc update_extra_requirements($requirements = NULL)
master update_7.inc update_extra_requirements($requirements = NULL)

Returns (and optionally stores) extra requirements that only apply during particular parts of the update.php process.

1 call to update_extra_requirements()
update_check_requirements in commands/core/drupal/update.inc
Check update requirements and report any errors.

File

commands/core/drupal/update.inc, line 28
Update.php for provisioned sites. This file is a derivative of the standard drupal update.php, which has been modified to allow being run from the command line.

Code

function update_extra_requirements($requirements = NULL) {
  static $extra_requirements = array();
  if (isset($requirements)) {
    $extra_requirements += $requirements;
  }
  return $extra_requirements;
}