You are here

function drush_domain_conf_set in Domain Access 7.3

File

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

Code

function drush_domain_conf_set($domain_id, $name, $value) {
  if ($domain_id != 'all') {
    domain_conf_variable_set($domain_id, $name, $value);
    drush_print('Variable set.');
  }
  else {
    variable_set($name, $value);
    foreach (domain_domains(TRUE) as $domain) {
      domain_conf_delete_variable($domain['domain_id'], $name);
    }
    drush_print('Variable set for all domains.');
  }
}