You are here

public function backup_migrate_source_remote::edit_form_submit in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.3 includes/sources.inc \backup_migrate_source_remote::edit_form_submit()
  2. 6.3 includes/sources.inc \backup_migrate_source_remote::edit_form_submit()

Submits 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/sources.inc, line 268

Class

backup_migrate_source_remote
A base class for creating sources.

Code

public 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);
}