update_manager_archive_verify

Versions
mediamosa-21
update_manager_archive_verify($project, $archive_file, $directory)

Verify an archive after it has been downloaded and extracted.

This function is responsible for invoking hook_verify_update_archive().

throws Exception on failure.

Parameters

string $project The short name of the project to download.

string $archive_file The filename of the unextracted archive.

string $directory The directory that the archive was extracted into.

Return value

void

Related topics

▾ 2 functions call update_manager_archive_verify()

update_manager_batch_project_get in modules/update/update.manager.inc
Batch operation: download, unpack, and verify a project.
update_manager_install_form_submit in modules/update/update.manager.inc
Handle form submission when installing new projects via the update manager.

Code

modules/update/update.manager.inc, line 684

<?php
function update_manager_archive_verify($project, $archive_file, $directory) {
  $failures = module_invoke_all('verify_update_archive', $project, $archive_file, $directory);
  if (!empty($failures)) {
    throw new Exception(t('Unable to extract %file', array('%file' => $file)));
  }
}
?>