You are here

function backup_migrate_filter_backup_restore::before_action_form_validate in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.3 includes/filters.backup_restore.inc \backup_migrate_filter_backup_restore::before_action_form_validate()
  2. 7.3 includes/filters.backup_restore.inc \backup_migrate_filter_backup_restore::before_action_form_validate()

Get the before-backup form for the active sources and destinations.

File

includes/filters.backup_restore.inc, line 141
This filter performs tha actual backup or restore operation. Not technically a filter per-se, but it does need to fit in the call chain.

Class

backup_migrate_filter_backup_restore
A filter backup or migrate the specified source.

Code

function before_action_form_validate($op, $settings, $form, $form_state) {
  $method = 'before_' . $op . '_form_validate';
  foreach ($settings
    ->get_all_locations() as $location) {
    if (method_exists($location, $method)) {
      $location
        ->{$method}($settings, $form, $form_state);
    }
  }
}