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.inc

File

commands/core/drupal/update.inc, line 120
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() {
  $warnings = FALSE;

  // Check the system module and update.php requirements only.
  $requirements = system_requirements('update');
  $requirements += update_extra_requirements();

  // If there are issues, report them.
  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'] . ')';
      }
      $warnings = TRUE;
      drupal_set_message($message, 'warning');
    }
  }
  return $warnings;
}