function drush_domain_scheme in Domain Access 8
Changes a domain scheme.
File
- domain/
domain.drush.inc, line 604 - Drush commands for Domain Access.
Code
function drush_domain_scheme($argument) {
// Resolve the domain.
if ($domain = drush_domain_get_from_argument($argument)) {
$content = drush_choice([
1 => dt('http'),
2 => dt('https'),
], dt('Select the default http scheme:'), '!value');
if (empty($content)) {
return;
}
$scheme = 'http';
if ($content == 2) {
$scheme = 'https';
}
$domain
->saveProperty('scheme', $scheme);
}
}