You are here

function drush_domain_name in Domain Access 8

Changes a domain name.

File

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

Code

function drush_domain_name($argument, $name) {

  // Resolve the domain.
  if ($domain = drush_domain_get_from_argument($argument)) {
    $domain
      ->saveProperty('name', $name);
  }
}