function quickupdate_manager_download_batch_finished in Quick update 7
Same name and namespace in other branches
- 8 quickupdate.module \quickupdate_manager_download_batch_finished()
Batch callback: Performs actions when the download batch is completed.
Parameters
bool $success: TRUE if the batch operation was successful, FALSE if there were errors.
array $results: An associative array of results from the batch operation.
1 string reference to 'quickupdate_manager_download_batch_finished'
- quickupdate_manager_update_form_submit in ./
quickupdate.module - Form submission handler for quickupdate_manager_update_form().
File
- ./
quickupdate.module, line 251 - Primarily Drupal hooks and global API functions.
Code
function quickupdate_manager_download_batch_finished($success, $results) {
// Checks if there is any valid projects to be downloaded.
if (!isset($results['projects'])) {
drupal_set_message(t('There is no available projects to download.'), 'error');
}
else {
module_load_include('inc', 'update', 'update.manager');
update_manager_download_batch_finished($success, $results);
}
}