function config_actions_drush_command in Config Actions 8
Implements hook_drush_command().
File
- ./
config_actions.drush.inc, line 14 - Config Actions drush integration.
Code
function config_actions_drush_command() {
$items = array();
$items['config-actions-list'] = array(
'description' => 'Display a list of available actions in modules.',
'aliases' => array(
'cal',
),
'arguments' => array(
'module' => 'Optional name of module to filter the list.',
'file' => 'Optional name of file within module to list.',
),
);
$items['config-actions-run'] = array(
'description' => 'Execute actions within a module.',
'aliases' => array(
'car',
),
'arguments' => array(
'module' => 'Name of module containing the action. If omitted, all actions in all modules are executed.',
'file' => 'Optional name of file within module containing action. If omitted, all actions in the module are executed.',
'action' => 'Optional name of action to execute. If omitted, all actions in the file are executed.',
),
);
return $items;
}