function l10n_update_batch_download in Localization update 7
Same name and namespace in other branches
- 6 l10n_update.batch.inc \l10n_update_batch_download()
Create a batch to just download files.
Parameters
$updates: Translations sources to be downloaded. Note: All update sources must have a 'fileurl'.
Return value
array A batch definition for this download.
File
- ./
l10n_update.batch.inc, line 20 - Reusable API for creating and running l10n update batches.
Code
function l10n_update_batch_download($updates) {
foreach ($updates as $update) {
$id = $update->filename;
$operations[] = array(
'_l10n_update_batch_download',
array(
$id,
$update,
),
);
}
return _l10n_update_create_batch($operations);
}