function variable_realm_drush_command in Variable 7.2
Implements hook_drush_command().
1 call to variable_realm_drush_command()
- variable_realm_drush_help in variable_realm/
variable_realm.drush.inc - Implements hook_drush_help().
File
- variable_realm/
variable_realm.drush.inc, line 10 - Drush commands for Variable Realm.
Code
function variable_realm_drush_command() {
$items['variable-realm-get'] = array(
'description' => 'Get a variable for a specific realm and key.',
'examples' => array(
'drush variable-realm-get language es site_frontpage',
'drush variable-realm-get language es',
),
'arguments' => array(
'domain_name' => 'The realm name for the variable.',
'domain_key' => 'The domain key for the variable.',
'variable_name' => 'Optional variable name variable to get. If not present list all variables for that realm and key.',
),
);
$items['variable-realm-set'] = array(
'description' => 'Set a variable for a specific realm and key.',
'examples' => array(
'drush variable-realm-set language es site_frontpage /home ',
),
'arguments' => array(
'domain_name' => 'The realm name for the variable.',
'domain_key' => 'The domain key for the variable.',
'variable_name' => 'The name variable to set (e.g. site_frontpage).',
'value' => 'The value to set for this variable.',
),
);
$items['variable-realm-del'] = array(
'description' => 'Delete a variable for a specific realm and key.',
'examples' => array(
'drush variable-realm-del language es site_frontpage',
),
'arguments' => array(
'domain_name' => 'The realm name for the variable.',
'domain_key' => 'The domain key for the variable.',
'variable_name' => 'The name variable to set (e.g. site_frontpage).',
),
);
return $items;
}