You are here

function backup_migrate_destination_s3::edit_form_submit in Backup and Migrate 7.2

Same name and namespace in other branches
  1. 8.2 includes/destinations.s3.inc \backup_migrate_destination_s3::edit_form_submit()
  2. 8.3 includes/destinations.s3.inc \backup_migrate_destination_s3::edit_form_submit()
  3. 6.3 includes/destinations.s3.inc \backup_migrate_destination_s3::edit_form_submit()
  4. 6.2 includes/destinations.s3.inc \backup_migrate_destination_s3::edit_form_submit()
  5. 7.3 includes/destinations.s3.inc \backup_migrate_destination_s3::edit_form_submit()

Submit the form for the settings for the s3 destination.

Overrides backup_migrate_destination_remote::edit_form_submit

File

includes/destinations.s3.inc, line 110
Functions to handle the s3 backup destination.

Class

backup_migrate_destination_s3
A destination for sending database backups to an s3 server.

Code

function edit_form_submit($form, &$form_state) {

  // Append the subdir onto the path.
  if (!empty($form_state['values']['subdir'])) {
    $form_state['values']['path'] .= '/' . trim($form_state['values']['subdir'], '/');
  }
  parent::edit_form_submit($form, $form_state);
}