function hosting_alias_settings_validate

7.x-3.x hosting_alias.module hosting_alias_settings_validate($form, $form_state)

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 490
Allow sites to have domain aliases that they can be accessed with.

Code

function hosting_alias_settings_validate($form, $form_state) {
  if (!valid_url($form_state['values']['hosting_alias_subdomain'])) {
    form_set_error('hosting_alias_subdomain', t('The provided domain is invalid.'));
  }
}