function _upgrade_status_get_cached_available_releases in Upgrade Status 7
Returns all currently cached data about available releases for all projects.
Return value
Array of data about available releases, keyed by project shortname.
1 call to _upgrade_status_get_cached_available_releases()
- upgrade_status_get_available in ./
upgrade_status.module - Tries to get update information from cache and refreshes it when necessary.
File
- ./
upgrade_status.module, line 199 - Checks to see if your installed modules are available for the next major release of Drupal.
Code
function _upgrade_status_get_cached_available_releases() {
$data = array();
$cache_items = _update_get_cache_multiple('upgrade_status_available_releases');
foreach ($cache_items as $cid => $cache) {
$cache->data['last_fetch'] = $cache->created;
if ($cache->expire < REQUEST_TIME) {
$cache->data['fetch_status'] = UPDATE_FETCH_PENDING;
}
// The project shortname is embedded in the cache ID, even if there's no
// data for this project in the DB at all, so use that for the indexes in
// the array.
$parts = explode('::', $cid, 2);
$data[$parts[1]] = $cache->data;
}
return $data;
}