function backup_migrate_source_remote::edit_form_submit in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 includes/sources.inc \backup_migrate_source_remote::edit_form_submit()
- 7.3 includes/sources.inc \backup_migrate_source_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/
sources.inc, line 262
Class
- backup_migrate_source_remote
- A base class for creating sources.
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);
}