function backup_migrate_crud_import_form_validate in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 includes/crud.inc \backup_migrate_crud_import_form_validate()
- 7.3 includes/crud.inc \backup_migrate_crud_import_form_validate()
Validate handler to import a view
File
- includes/
crud.inc, line 325 - CRUD functions for backup and migrate types (schedules, profiles etc.).
Code
function backup_migrate_crud_import_form_validate($form, &$form_state) {
$item = backup_migrate_crud_create_from_import($form_state['values']['code']);
if ($item) {
$form_state['values']['item'] = $item;
}
else {
form_set_error('code', t('Unable to import item.'));
}
}