function StatusInfoDrupal7::beforeGetStatus

8.0.x StatusInfoDrupal7.php StatusInfoDrupal7::beforeGetStatus(&$projects, $check_disabled)
7.x StatusInfoDrupal7.php StatusInfoDrupal7::beforeGetStatus(&$projects, $check_disabled)
master StatusInfoDrupal7.php StatusInfoDrupal7::beforeGetStatus(&$projects, $check_disabled)

Perform adjustments before running get status.

  • Enforce check-disabled option on update module.

Overrides StatusInfoDrupal8::beforeGetStatus

1 method overrides StatusInfoDrupal7::beforeGetStatus()
StatusInfoDrupal6::beforeGetStatus in lib/Drush/UpdateService/StatusInfoDrupal6.php
Perform adjustments before running get status.

File

lib/Drush/UpdateService/StatusInfoDrupal7.php, line 22
Implementation of 'drupal' update_status engine for Drupal 7.

Namespace

Drush\UpdateService

Class

StatusInfoDrupal7

Code

function beforeGetStatus(&$projects, $check_disabled) {
  // If check-disabled option was provided, alter Drupal settings temporarily.
  // There's no other way to hook into this.
  if (!is_null($check_disabled)) {
    global $conf;
    $this->update_check_disabled = $conf['update_check_disabled'];
    $conf['update_check_disabled'] = $check_disabled;
  }
}