function l10n_update_batch_download in Localization update 6
Same name and namespace in other branches
- 7 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 19
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);
}