You are here

function drush_domain_generate_domains_validate in Domain Access 8

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

Validates the domain generation script.

Parameters

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

File

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

Code

function drush_domain_generate_domains_validate($primary = 'example.com') {
  if ($empty = drush_get_option('empty')) {
    \Drupal::database()
      ->truncate("domain")
      ->execute();
  }
  return;

  // TODO: Add validation.
}