function backup_migrate_filters_invoke_all

cis7 filters.inc backup_migrate_filters_invoke_all()
cle7 filters.inc backup_migrate_filters_invoke_all()
elmsmedia7 filters.inc backup_migrate_filters_invoke_all()
icor7 filters.inc backup_migrate_filters_invoke_all()
meedjum_blog7 filters.inc backup_migrate_filters_invoke_all()
mooc7 filters.inc backup_migrate_filters_invoke_all()

Invoke the given method on all of the available filters.

10 calls to backup_migrate_filters_invoke_all()
backup_migrate_backup_fail in sites/all/modules/ulmus/backup_migrate/backup_migrate.module
Clean up when a backup operation fails.
backup_migrate_backup_migrate_destinations in sites/all/modules/ulmus/backup_migrate/includes/destinations.inc
Implementation of hook_backup_migrate_destinations().
backup_migrate_backup_succeed in sites/all/modules/ulmus/backup_migrate/backup_migrate.module
Clean up when a backup operation suceeds.
backup_migrate_destination_db::backup_to_file in sites/all/modules/ulmus/backup_migrate/includes/destinations.db.inc
Backup from this source.
backup_migrate_destination_db::restore_from_file in sites/all/modules/ulmus/backup_migrate/includes/destinations.db.inc
Restore to this source.

... See full list

File

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

Code

function backup_migrate_filters_invoke_all() {
  $args = func_get_args();
  $op = array_shift($args);
  $out = array();
  $filters = backup_migrate_get_filters($op);
  foreach ($filters as $filter) {
    if (method_exists($filter, $op)) {
      /* call_user_func_array() ignores the function signature, so we cannot
       * use it to pass references. (Call-time pass-by-reference is deprecated
       * in PHP5.3.) Work around it, since we have unknown function signatures.
       */
      switch (count($args)) {
        case 1:
          $ret = $filter->$op($args[0]);
          break;

        case 2:
          $ret = $filter->$op($args[0], $args[1]);
          break;

        default:
          // This assumes that no functions with more than 2 arguments expect a
          // reference as argument. If so, add another 'case block'.
          $ret = call_user_func_array(array($filter, $op), $args);
      }
      $out = array_merge_recursive($out, (array) $ret);
    }
  }
  return $out;
}
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.