You are here

function xmlsitemap_drush_command in XML sitemap 8

Same name and namespace in other branches
  1. 6.2 xmlsitemap.drush.inc \xmlsitemap_drush_command()
  2. 7.2 xmlsitemap.drush.inc \xmlsitemap_drush_command()

Implements hook_drush_command().

File

./xmlsitemap.drush.inc, line 13
Drush integration functions for the xmlsitemap module.

Code

function xmlsitemap_drush_command() {
  $items['xmlsitemap-regenerate'] = [
    'description' => 'Regenerate the XML sitemap files.',
    'callback' => 'drush_xmlsitemap_regenerate',
    'drupal dependencies' => [
      'xmlsitemap',
    ],
  ];
  $items['xmlsitemap-rebuild'] = [
    'description' => 'Dump and re-process all possible XML sitemap data, and then regenerate the files.',
    'callback' => 'drush_xmlsitemap_rebuild',
    'drupal dependencies' => [
      'xmlsitemap',
    ],
  ];
  $items['xmlsitemap-index'] = [
    'description' => 'Process un-indexed XML sitemap links.',
    'callback' => 'drush_xmlsitemap_index',
    'drupal dependencies' => [
      'xmlsitemap',
    ],
    'options' => [
      'limit' => 'The limit of links of each type to process.',
    ],
  ];
  return $items;
}