function backup_migrate_destination_email_conf_validate in Backup and Migrate 5.2
Validate the configuration form. Make sure the email address is valid.
File
- includes/
destinations.email.inc, line 40 - Functions to handle the email backup destination.
Code
function backup_migrate_destination_email_conf_validate($form_id, $form_values) {
if (!valid_email_address($form_values['location'])) {
form_set_error('[location]', t('The e-mail address %mail is not valid.', array(
'%mail' => $form_values['location'],
)));
}
}