function l10n_update_available_updates in Localization update 6
Same name and namespace in other branches
- 7 l10n_update.module \l10n_update_available_updates()
Get available updates.
Parameters
boolean $refresh: TRUE = refresh the history data.
Return value
array Array of all projects for which updates are available. For each project an array of update objects, one per language.
1 call to l10n_update_available_updates()
- l10n_update_requirements in ./
l10n_update.install - Implementation of hook_requirements().
File
- ./
l10n_update.module, line 481 - Download translations from remote localization server.
Code
function l10n_update_available_updates($refresh = NULL) {
module_load_include('check.inc', 'l10n_update');
if ($available = l10n_update_available_releases($refresh)) {
$history = l10n_update_get_history();
return l10n_update_build_updates($history, $available);
}
}