You are here

function domain_conf_drush_command in Domain Access 7.3

Implements hook_drush_command().

1 call to domain_conf_drush_command()
domain_conf_drush_help in domain_conf/domain_conf.drush.inc
Implements hook_drush_help().

File

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

Code

function domain_conf_drush_command() {
  $items = array();
  $items['domain-conf-set'] = array(
    'description' => 'Set a variable for a specific domain.',
    'examples' => array(
      'drush domain-conf-set 2 site_frontpage /home ',
      'drush dc-set 2 site_frontpage /home',
      'drush dc-set all site_frontpage /home',
    ),
    'arguments' => array(
      'domain_id' => 'The domain_id for the setting. If set to "all" it will be applied to all domains.',
      'name' => 'The name variable to set (e.g. site_frontpage).',
      'value' => 'The value to set for this variable.',
    ),
    'aliases' => array(
      'dc-set',
    ),
  );
  $items['domain-conf-get'] = array(
    'description' => 'Get a variable for a specific domain.',
    'examples' => array(
      'drush domain-conf-get 2 site_frontpage',
      'drush dc-get 2 site_frontpage',
      'drush dc-get all site_frontpage',
    ),
    'arguments' => array(
      'domain_id' => 'The domain_id for the setting. If set to "all" it will list the value for all domains.',
      'name' => 'The name variable to set (e.g. site_frontpage).',
    ),
    'aliases' => array(
      'dc-get',
    ),
  );
  return $items;
}