You are here

function backup_migrate_location_remote::edit_form_submit in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.3 includes/locations.inc \backup_migrate_location_remote::edit_form_submit()
  2. 7.3 includes/locations.inc \backup_migrate_location_remote::edit_form_submit()

Submit the configuration form. Glue the url together and add the old password back if a new one was not specified.

Overrides backup_migrate_item::edit_form_submit

File

includes/locations.inc, line 537

Class

backup_migrate_location_remote
A base class for creating locations.

Code

function edit_form_submit($form, &$form_state) {
  $form_state['values']['pass'] = $form_state['values']['pass'] ? $form_state['values']['pass'] : $form_state['values']['old_password'];
  $form_state['values']['location'] = $this
    ->glue_url($form_state['values'], FALSE);
  parent::edit_form_submit($form, $form_state);
}