function backup_migrate_ui_action_form_pre_submit in Backup and Migrate 8.3
Same name and namespace in other branches
- 6.3 backup_migrate.module \backup_migrate_ui_action_form_pre_submit()
- 7.3 backup_migrate.module \backup_migrate_ui_action_form_pre_submit()
Allow filters, sources and destinations to present additional form elements to the end 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 - Alter a B&M action (backup/restore) form to allow for filters to add additional form steps.
File
- ./
backup_migrate.module, line 1181 - Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (e.g. cache_*)
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']);
}
}