function drush_domain_conf_get in Domain Access 7.3
File
- domain_conf/
domain_conf.drush.inc, line 80 - Drush commands for Domain Conf.
Code
function drush_domain_conf_get($domain_id, $name) {
if ($domain_id != 'all') {
$value = domain_conf_variable_get($domain_id, $name);
drush_print($name . ": " . $value);
}
else {
foreach (domain_domains(TRUE) as $domain) {
$value = domain_conf_variable_get($domain['domain_id'], $name);
$value = isset($value) ? $value : dt('No matching variable found.');
drush_print(dt('Domain id: !domain_id, site: !sitename, !name: !value', array(
'!domain_id' => $domain['domain_id'],
'!sitename' => $domain['sitename'],
'!value' => $value,
'!name' => $name,
)));
}
}
}