function StatusInfoDrupal6::beforeGetStatus

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

Perform adjustments before running get status.

  • Enforce check-disabled option on update module.

Overrides StatusInfoDrupal7::beforeGetStatus

File

lib/Drush/UpdateService/StatusInfoDrupal6.php, line 15
Implementation of 'drupal' update_status engine for Drupal 6.

Namespace

Drush\UpdateService

Class

StatusInfoDrupal6

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_advanced_check_disabled'];
    $conf['update_advanced_check_disabled'] = $check_disabled;
  }
}