function redirect_drush_command in Redirect 8
Same name and namespace in other branches
- 7.2 redirect.drush.inc \redirect_drush_command()
- 7 redirect.drush.inc \redirect_drush_command()
Implements hook_drush_command().
File
- ./
redirect.drush.inc, line 11 - Drush integration for the redirect module.
Code
function redirect_drush_command() {
$items['generate-redirects'] = [
'description' => 'Create redirects.',
'drupal dependencies' => [
'devel_generate',
],
'arguments' => [
'count' => 'Number of redirects to generate.',
],
'options' => [
'delete' => 'Delete all redirects before generating new ones.',
],
];
return $items;
}