Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / verify_update_archive.twig
1 /**
2  * Implements hook_verify_update_archive().
3  */
4 function {{ machine_name }}_verify_update_archive($project, $archive_file, $directory) {
5   $errors = array();
6   if (!file_exists($directory)) {
7     $errors[] = t('The %directory does not exist.', array('%directory' => $directory));
8   }
9   // Add other checks on the archive integrity here.
10   return $errors;
11 }