You are here

function backup_migrate_crud_edit_form_submit in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 8.3 includes/crud.inc \backup_migrate_crud_edit_form_submit()
  2. 6.3 includes/crud.inc \backup_migrate_crud_edit_form_submit()
  3. 6.2 includes/crud.inc \backup_migrate_crud_edit_form_submit()
  4. 7.3 includes/crud.inc \backup_migrate_crud_edit_form_submit()
  5. 7.2 includes/crud.inc \backup_migrate_crud_edit_form_submit()

Submit the item edit form.

1 string reference to 'backup_migrate_crud_edit_form_submit'
backup_migrate_crud_edit_form in includes/crud.inc
A form callback to edit an item.

File

includes/crud.inc, line 123
CRUD functions for backup and migrate types (schedules, profiles etc.).

Code

function backup_migrate_crud_edit_form_submit($form, &$form_state) {
  $item = $form_state['values']['item'];
  $item
    ->edit_form_submit($form, $form_state);
  if (empty($form_state['redirect'])) {
    $form_state['redirect'] = BACKUP_MIGRATE_MENU_PATH . '/' . $item->type_name;
  }
}