You are here

function simple_sitemap_drush_command in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 simple_sitemap.drush.inc \simple_sitemap_drush_command()
  2. 8.2 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;
}