function simple_sitemap_drush_command in Simple XML sitemap 8.3
Same name and namespace in other branches
- 8.2 simple_sitemap.drush.inc \simple_sitemap_drush_command()
- 4.x simple_sitemap.drush.inc \simple_sitemap_drush_command()
Implements hook_drush_command().
File
- ./
simple_sitemap.drush.inc, line 13 - Drush (< 9) integration.
Code
function simple_sitemap_drush_command() {
$items['simple-sitemap-generate'] = [
'description' => 'Regenerate all XML sitemap variants or continue generation.',
'callback' => 'drush_simple_sitemap_generate',
'drupal dependencies' => [
'simple_sitemap',
],
'aliases' => [
'ssg',
],
];
$items['simple-sitemap-rebuild-queue'] = [
'description' => 'Queue all sitemap variants for regeneration.',
'callback' => 'drush_simple_sitemap_rebuild_queue',
'drupal dependencies' => [
'simple_sitemap',
],
'aliases' => [
'ssr',
],
];
return $items;
}