Verify an archive after it has been downloaded and extracted.
string $project: The short name of the project that has been downloaded.
string $archive_file: The filename of the unextracted archive.
string $directory: The directory that the archive was extracted into.
If there are any problems, return an array of error messages. If there are no problems, return an empty array.
update_manager_archive_verify()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_verify_update_archive($project, $archive_file, $directory) {
$errors = array();
if (!file_exists($directory)) {
$errors[] = t('The %directory does not exist.', array(
'%directory' => $directory,
));
}
// Add other checks on the archive integrity here.
return $errors;
}