You are here

function backup_migrate_ui_action_form_pre_submit in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.3 backup_migrate.module \backup_migrate_ui_action_form_pre_submit()
  2. 6.3 backup_migrate.module \backup_migrate_ui_action_form_pre_submit()

Allows filters, sources and destinations to present additional form elements.

The additional form elements will be shown to the user before an action is submitted.

1 string reference to 'backup_migrate_ui_action_form_pre_submit'
_backup_migrate_ui_action_form in ./backup_migrate.module
Alters a B&M action (backup/restore) form to allow for filters to add steps.

File

./backup_migrate.module, line 1275
Backup and restore databases for Drupal.

Code

function backup_migrate_ui_action_form_pre_submit($form, &$form_state) {
  if (!empty($form_state['storage']['values']) && !empty($form_state['values']['settings'])) {

    // Check if there are any form elements to submit.
    backup_migrate_filters_before_action_form_submit($form_state['values']['settings'], $form_state['values']['operation'], $form, $form_state);

    // Clear the storage so the form can continue as normal.
    unset($form_state['storage']);
  }
}