function backup_migrate_crud_import_form_submit in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.3 includes/crud.inc \backup_migrate_crud_import_form_submit()
- 6.3 includes/crud.inc \backup_migrate_crud_import_form_submit()
Import a item after confirmation.
File
- includes/
crud.inc, line 341 - 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();
}