function hosting_alias_settings_validate in Hosting 7.3
Same name and namespace in other branches
- 7.4 alias/hosting_alias.module \hosting_alias_settings_validate()
Validation handler for hosting_alias_settings form.
1 string reference to 'hosting_alias_settings_validate'
- hosting_alias_settings in alias/
hosting_alias.module - Configuration form for site aliases.
File
- alias/
hosting_alias.module, line 519 - Allow sites to have domain aliases that they can be accessed with.
Code
function hosting_alias_settings_validate($form, $form_state) {
if (!empty($form_state['values']['hosting_alias_subdomain']) && !valid_url($form_state['values']['hosting_alias_subdomain'])) {
form_set_error('hosting_alias_subdomain', t('The provided domain is invalid.'));
}
}