function backup_migrate_filter_compression::file_types

cis7 filters.compression.inc backup_migrate_filter_compression::file_types()
cle7 filters.compression.inc backup_migrate_filter_compression::file_types()
elmsmedia7 filters.compression.inc backup_migrate_filter_compression::file_types()
icor7 filters.compression.inc backup_migrate_filter_compression::file_types()
meedjum_blog7 filters.compression.inc backup_migrate_filter_compression::file_types()
mooc7 filters.compression.inc backup_migrate_filter_compression::file_types()

Return a list of backup filetypes.

Overrides backup_migrate_filter::file_types

File

sites/all/modules/ulmus/backup_migrate/includes/filters.compression.inc, line 57
A filter for compressing backups with Zip, gzip, and bzip2.

Class

backup_migrate_filter_compression
A filter for compressing backup files.

Code

function file_types() {
  return array(
    "gzip" => array(
      "extension" => "gz",
      "filemime" => "application/x-gzip",
      "backup" => TRUE,
      "restore" => TRUE,
    ),
    "bzip" => array(
      "extension" => "bz",
      "filemime" => "application/x-bzip",
      "backup" => TRUE,
      "restore" => TRUE,
    ),
    "bzip2" => array(
      "extension" => "bz2",
      "filemime" => "application/x-bzip",
      "backup" => TRUE,
      "restore" => TRUE,
    ),
    "zip" => array(
      "extension" => "zip",
      "filemime" => "application/zip",
      "backup" => TRUE,
      "restore" => TRUE,
    ),
  );
}