function backup_migrate_get_filters

cis7 filters.inc backup_migrate_get_filters($op = NULL)
cle7 filters.inc backup_migrate_get_filters($op = NULL)
elmsmedia7 filters.inc backup_migrate_get_filters($op = NULL)
icor7 filters.inc backup_migrate_get_filters($op = NULL)
meedjum_blog7 filters.inc backup_migrate_get_filters($op = NULL)
mooc7 filters.inc backup_migrate_get_filters($op = NULL)

Get the available destination types.

3 calls to backup_migrate_get_filters()
backup_migrate_filters_backup in sites/all/modules/ulmus/backup_migrate/includes/filters.inc
Filter a backup file before sending it to the destination.
backup_migrate_filters_invoke_all in sites/all/modules/ulmus/backup_migrate/includes/filters.inc
Invoke the given method on all of the available filters.
backup_migrate_filters_restore in sites/all/modules/ulmus/backup_migrate/includes/filters.inc
Filter a backup file before sending it to the destination.

File

sites/all/modules/ulmus/backup_migrate/includes/filters.inc, line 12
All of the filter handling code needed for Backup and Migrate.

Code

function backup_migrate_get_filters($op = NULL) {
  static $filters = NULL;
  if ($filters === NULL) {
    $filters = array();
    $definitions = module_invoke_all('backup_migrate_filters');
    foreach ($definitions as $definition) {
      // Include the necessary file if specified by the filter.
      if (!empty($definition['file'])) {
        require_once './' . $definition['file'];
      }
      $filters[] = new $definition['class'];
    }
  }
  $sort = array();
  // Sort the filters based on the weight for the given operation.
  foreach ($filters as $filter) {
    $sort[] = $filter->weight($op);
  }
  array_multisort($sort, SORT_ASC, SORT_NUMERIC, $filters);
  return $filters;
}
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.