You are here

function domain_drush_validate_domain in Domain Access 7.3

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

Drush version of domain_validate.

Parameters

$subdomain: The domain name to validate for syntax and uniqueness.

Return value

An array of errors encountered.

See also

domain_validate()

1 call to domain_drush_validate_domain()
drush_domain_add_validate in ./domain.drush.inc
Validate the domain add script.

File

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

Code

function domain_drush_validate_domain($subdomain) {
  $error = domain_validate($subdomain);
  $output = '';
  foreach ($error as $msg) {
    $output .= $msg;
  }
  return $output;
}