function backup_migrate_destination_db_conf_validate in Backup and Migrate 5.2
Validate the configuration form. Make sure the db info is valid.
File
- includes/
destinations.db.inc, line 82 - Functions to handle the direct to database destination.
Code
function backup_migrate_destination_db_conf_validate($form_id, $form_values) {
if (!preg_match('/[a-zA-Z0-9_\\$]+/', $form_values['path'])) {
form_set_error('path', t('The database name is not valid.'));
}
}