function backup_migrate_schedule::edit_form_submit in Backup and Migrate 8.3
Same name and namespace in other branches
- 8.2 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()
- 7.2 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 581 - All of the schedule handling code needed for Backup and Migrate.
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);
}