You are here

function drush_domain_add_validate in Domain Access 7.3

Same name and namespace in other branches
  1. 8 domain/domain.drush.inc \drush_domain_add_validate()

Validate the domain add script.

Parameters

$subdomain: The domain name to register.

$sitename: The sitename to use for this domain.

File

./domain.drush.inc, line 295
Drush commands for Domain Access.

Code

function drush_domain_add_validate($subdomain, $sitename) {
  $error = domain_drush_validate_domain($subdomain);
  if (!empty($error)) {
    return drush_set_error('domain', $error);
  }
}