diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-30 16:27:02 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-30 16:27:02 +0000 |
commit | 9d692bc28904566692d4de298bd40cc24f43da48 (patch) | |
tree | e1bde215e7b09aa82ba8611f0caf3b4799537fb7 /modules/update | |
parent | 9332e835da1fdf517ffb9306a6664dc4342edff0 (diff) | |
download | brdo-9d692bc28904566692d4de298bd40cc24f43da48.tar.gz brdo-9d692bc28904566692d4de298bd40cc24f43da48.tar.bz2 |
#605270 by jhodgdon, dww, heyrocker: Fixed Document new update manager hooks.
Diffstat (limited to 'modules/update')
-rw-r--r-- | modules/update/update.api.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/update/update.api.php b/modules/update/update.api.php index f28b6c0bf..b02b22300 100644 --- a/modules/update/update.api.php +++ b/modules/update/update.api.php @@ -105,5 +105,28 @@ function hook_update_status_alter(&$projects) { } /** + * Verify an archive after it has been downloaded and extracted. + * + * @param string $project + * The short name of the project that has been downloaded. + * @param string $archive_file + * The filename of the unextracted archive. + * @param string $directory + * The directory that the archive was extracted into. + * + * @return + * If there is a problem, return any non-null value. If there is no problem, + * don't return anything (null). + * + * @see update_manager_archive_verify() + */ +function hook_verify_update_archive($project, $archive_file, $directory) { + if (!file_exists($directory)) { + return TRUE; + } + // Add other checks on the archive integrity here. +} + +/** * @} End of "addtogroup hooks". */ |