function update_manager_archive_verify

update_manager_archive_verify($project, $archive_file, $directory)

Verifies an archive after it has been downloaded and extracted.

This function is responsible for invoking hook_verify_update_archive().

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

array An array of error messages to display if the archive was invalid. If there are no errors, it will be an empty array.

File

core/modules/update/update.manager.inc, line 191
Administrative screens and processing functions of the Update Manager module.

Code

function update_manager_archive_verify($project, $archive_file, $directory) {
  return \Drupal::moduleHandler()->invokeAll('verify_update_archive', array($project, $archive_file, $directory));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!update!update.manager.inc/function/update_manager_archive_verify/8.1.x