You are here

function backup_migrate_schedule::edit_form_submit in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 8.3 includes/schedules.inc \backup_migrate_schedule::edit_form_submit()
  2. 6.3 includes/schedules.inc \backup_migrate_schedule::edit_form_submit()
  3. 6.2 includes/schedules.inc \backup_migrate_schedule::edit_form_submit()
  4. 7.3 includes/schedules.inc \backup_migrate_schedule::edit_form_submit()
  5. 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 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);
}