function backup_migrate_destination::load_files_info

cis7 destinations.inc backup_migrate_destination::load_files_info($files)
cle7 destinations.inc backup_migrate_destination::load_files_info($files)
elmsmedia7 destinations.inc backup_migrate_destination::load_files_info($files)
icor7 destinations.inc backup_migrate_destination::load_files_info($files)
meedjum_blog7 destinations.inc backup_migrate_destination::load_files_info($files)
mooc7 destinations.inc 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/destinations.inc
List all the available files in the given destination with their destination specific id.

File

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

Class

backup_migrate_destination
A base class for creating destinations.

Code

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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.