function backup_migrate_filter_backup_restore::before_action_form in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 includes/filters.backup_restore.inc \backup_migrate_filter_backup_restore::before_action_form()
- 7.3 includes/filters.backup_restore.inc \backup_migrate_filter_backup_restore::before_action_form()
Get the before-backup form for the active sources and destinations.
File
- includes/
filters.backup_restore.inc, line 122 - 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($op, $settings) {
$form = array();
$method = 'before_' . $op . '_form';
if ($source = $settings
->get_source()) {
if (method_exists($source, $method)) {
$form += $source
->{$method}($settings);
}
}
foreach ($settings
->get_destinations() as $destination) {
if (method_exists($destination, $method)) {
$form += $destination
->{$method}($settings);
}
}
return $form;
}