diff options
Diffstat (limited to 'modules/update/update.api.php')
-rw-r--r-- | modules/update/update.api.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/update/update.api.php b/modules/update/update.api.php index b02b22300..ef78cbf42 100644 --- a/modules/update/update.api.php +++ b/modules/update/update.api.php @@ -115,16 +115,18 @@ function hook_update_status_alter(&$projects) { * 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). + * If there are any problems, return an array of error messages. If there are + * no problems, return an empty array. * * @see update_manager_archive_verify() */ function hook_verify_update_archive($project, $archive_file, $directory) { + $errors = array(); if (!file_exists($directory)) { - return TRUE; + $errors[] = t('The %directory does not exist.', array('%directory' => $directory)); } // Add other checks on the archive integrity here. + return $errors; } /** |