You are here

function drush_domain_conf_get_validate in Domain Access 7.3

File

domain_conf/domain_conf.drush.inc, line 99
Drush commands for Domain Conf.

Code

function drush_domain_conf_get_validate($domain_id = NULL, $name = NULL) {
  if (is_null($domain_id) | is_null($name)) {
    return drush_set_error('domain_conf', dt('Please enter both required arguments, "dc-get domain_id name".'));
  }
  $domain = domain_load($domain_id);
  if (!isset($domain['domain_id']) && $domain_id != 'all') {
    return drush_set_error('domain_conf', dt('The specified domain does not exist.'));
  }
}