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