protected function StatusInfoDrupal6::getAvailableReleases

8.0.x StatusInfoDrupal6.php protected StatusInfoDrupal6::getAvailableReleases()
7.x StatusInfoDrupal6.php protected StatusInfoDrupal6::getAvailableReleases()

Obtains release info for all installed projects via update.module.

Overrides StatusInfoDrupal7::getAvailableReleases

See also

update_get_available().

update_manual_status().

File

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

Namespace

Drush\UpdateService

Class

StatusInfoDrupal6

Code

protected function getAvailableReleases() {
  // We force a refresh if the cache is not available.
  if (!cache_get('update_available_releases', 'cache_update')) {
    $this->refresh();
  }

  $available = update_get_available(TRUE);

  // Force to invalidate some update_status caches that are only cleared
  // when visiting update status report page.
  if (function_exists('_update_cache_clear')) {
    _update_cache_clear('update_project_data');
    _update_cache_clear('update_project_projects');
  }

  return $available;
}