You are here

function drush_domain_generate_domains_validate in Domain Access 7.3

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

Validate the domain generation script.

Parameters

$primary: The root domain to use for domain creation.

File

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

Code

function drush_domain_generate_domains_validate($primary = 'example.com') {
  if ($empty = drush_get_option('empty')) {
    db_query("TRUNCATE TABLE {domain}");
  }
  $error = domain_valid_domain($primary);
  if (!empty($error)) {
    return drush_set_error('domain', $error);
  }
}