function backup_migrate_filters_invoke_all

cis7 backup_migrate_filters_invoke_all()
cle7 backup_migrate_filters_invoke_all()
elmsmedia7 backup_migrate_filters_invoke_all()
icor7 backup_migrate_filters_invoke_all()
meedjum_blog7 backup_migrate_filters_invoke_all()
mooc7 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/
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/
Backup from this source.
backup_migrate_destination_db::restore_from_file in sites/all/modules/ulmus/backup_migrate/includes/
Restore to this source.

... See full list


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


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]);

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

          // 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;