function delete_all_drush_command in Delete all 7
Same name and namespace in other branches
- 8 drush/delete_all.drush.inc \delete_all_drush_command()
- 6 delete_all.drush.inc \delete_all_drush_command()
- 2.x drush/delete_all.drush.inc \delete_all_drush_command()
Implementation of hook_drush_command().
File
- ./
delete_all.drush.inc, line 11 - delete all Drush command
Code
function delete_all_drush_command() {
$items = array();
$items['delete-all'] = array(
'callback' => 'delete_all_drush_delete',
'description' => 'Delete all nodes, nodes of a specific content type or users.',
'options' => array(
'roles' => 'pick roles',
'reset' => 'Reset counter for node, revision and comment tables.',
),
'examples' => array(
'drush delete-all article' => 'Delect all article nodes.',
'drush delete-all all' => 'Delete nodes of all types.',
'drush delete-all all --reset' => 'Delete nodes of all types, and reset node, revision and comment counters.',
'drush delete-all users' => 'Delete users.',
),
'aliases' => array(
'da',
),
);
return $items;
}