function backup_migrate_destination::load_files_info

cis7 backup_migrate_destination::load_files_info($files)
cle7 backup_migrate_destination::load_files_info($files)
elmsmedia7 backup_migrate_destination::load_files_info($files)
icor7 backup_migrate_destination::load_files_info($files)
meedjum_blog7 backup_migrate_destination::load_files_info($files)
mooc7 backup_migrate_destination::load_files_info($files)

Load up the file's metadata from the accompanying .info file if applicable.

1 call to backup_migrate_destination::load_files_info()
backup_migrate_destination::list_files in sites/all/modules/ulmus/backup_migrate/includes/
List all the available files in the given destination with their destination specific id.


sites/all/modules/ulmus/backup_migrate/includes/, line 684
All of the destination handling code needed for Backup and Migrate.


A base class for creating destinations.


function load_files_info($files) {
  foreach ($files as $key => $file) {
    if (isset($files[$key . '.info'])) {
      // See if there is an info file with the same name as the backup.
      $info = drupal_parse_info_file($files[$key . '.info']->filepath());
      // Allow the stored metadata to override the detected metadata.
      $file->file_info = $info + $file->file_info;
      // Remove the metadata file from the list
      unset($files[$key . '.info']);

  return $files;