function update_check_requirements

8.0.x update_6.inc update_check_requirements()
8.0.x update_7.inc update_check_requirements()
6.x update_6.inc update_check_requirements()
6.x update.inc update_check_requirements()
6.x update_7.inc update_check_requirements()
7.x update_6.inc update_check_requirements()
7.x update_7.inc update_check_requirements()
3.x update_6.inc update_check_requirements()
3.x update_7.inc update_check_requirements()
4.x update_6.inc update_check_requirements()
4.x update.inc update_check_requirements()
5.x update_6.inc update_check_requirements()
5.x update.inc update_check_requirements()
5.x update_7.inc update_check_requirements()
master update_7.inc update_check_requirements()

Check update requirements and report any errors.

2 calls to update_check_requirements()
update_main_prepare in commands/core/drupal/update_6.inc
update_main_prepare in commands/core/drupal/update_7.inc

File

commands/core/drupal/update_6.inc, line 258
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_check_requirements() {
  // Check the system module requirements only.
  $requirements = module_invoke('system', 'requirements', 'update');
  $severity = drupal_requirements_severity($requirements);

  // If there are issues, report them.
  if ($severity != REQUIREMENT_OK) {
    foreach ($requirements as $requirement) {
      if (isset($requirement['severity']) && $requirement['severity'] != REQUIREMENT_OK) {
        $message = isset($requirement['description']) ? $requirement['description'] : '';
        if (isset($requirement['value']) && $requirement['value']) {
          $message .= ' (Currently using ' . $requirement['title'] . ' ' . $requirement['value'] . ')';
        }
        drush_log($message, LogLevel::WARNING);
      }
    }
  }
}