function taxonomy_edge_drush_command in Taxonomy Edge 7
Implements hook_drush_command().
File
- ./
taxonomy_edge.drush.inc, line 10 - Drush commands for Taxonomy Edge.
Code
function taxonomy_edge_drush_command() {
$items = array();
$items['rebuild-edges'] = array(
'description' => "Rebuild tree edges.",
'arguments' => array(
'type' => 'Name of the vocabulary (e.g. tags)',
),
'options' => array(
'order' => 'Rebuild order',
),
'examples' => array(
'drush rebuild-edges tags --order' => 'Rebuild edges and order for vocabulary "tags"',
),
);
$items['rebuild-order'] = array(
'description' => "Rebuild order for a tree.",
'arguments' => array(
'type' => 'Name of the vocabulary (e.g. tags)',
),
'examples' => array(
'drush rebuild-order tags' => 'Rebuild order for vocabulary "tags"',
),
);
return $items;
}