function replicate_drush_command in Replicate 7
Same name and namespace in other branches
- 8 replicate.drush.inc \replicate_drush_command()
Implements hook_drush_command().
File
- ./
replicate.drush.inc, line 11 - Replicate entities via drush framework.
Code
function replicate_drush_command() {
$items = array();
$items['replicate-drush-entity-by-ids'] = array(
'description' => 'Replicate an entity',
'arguments' => array(
'entity-type' => dt('Type of entity (eg. Node, Comment, ...) that you wish to replicate.'),
'entity-ids' => dt('A comma delimited list of entity IDs which should be replicated (eg. NodeID, TermID, ...).'),
),
'required-arguments' => 1,
'aliases' => array(
'rep',
'replicate',
),
'examples' => array(
'drush replicate-drush-entity-by-ids node 1' => 'Replicate node 1 using full command.',
'drush replicate node 1,2,3' => 'Replicate nodes 1,2 and 3 using aliased command.',
),
);
return $items;
}