function backup_migrate_schedule::edit_form_submit in Backup and Migrate 7.2
Same name and namespace in other branches
- 8.2 includes/schedules.inc \backup_migrate_schedule::edit_form_submit()
- 8.3 includes/schedules.inc \backup_migrate_schedule::edit_form_submit()
- 6.3 includes/schedules.inc \backup_migrate_schedule::edit_form_submit()
- 6.2 includes/schedules.inc \backup_migrate_schedule::edit_form_submit()
- 7.3 includes/schedules.inc \backup_migrate_schedule::edit_form_submit()
Submit the edit form.
Overrides backup_migrate_item::edit_form_submit
File
- includes/
schedules.inc, line 289
Class
- backup_migrate_schedule
- A schedule class for crud operations.
Code
function edit_form_submit($form, &$form_state) {
$periods = $this
->frequency_periods();
$period = $periods[$form_state['values']['period']['type']];
$form_state['values']['period'] = $form_state['values']['period']['number'] * $period['seconds'];
parent::edit_form_submit($form, $form_state);
}