You are here

function backup_migrate_crud_import_form_submit in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.3 includes/crud.inc \backup_migrate_crud_import_form_submit()
  2. 7.3 includes/crud.inc \backup_migrate_crud_import_form_submit()

import a item after confirmation.

File

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

Code

function backup_migrate_crud_import_form_submit($form, &$form_state) {
  $item = $form_state['values']['item'];
  $item
    ->save();
  _backup_migrate_message('Your !type was imported', array(
    '!type' => t($item->singular),
  ));
  $form_state['redirect'] = $item
    ->get_settings_path();
}