You are here

function xmlsitemap_drush_command in XML sitemap 7.2

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

Implements hook_drush_command().

File

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

Code

function xmlsitemap_drush_command() {
  $items['xmlsitemap-regenerate'] = array(
    'description' => 'Regenerate the XML sitemap files.',
    'callback' => 'drush_xmlsitemap_regenerate',
    'drupal dependencies' => array(
      'xmlsitemap',
    ),
  );
  $items['xmlsitemap-rebuild'] = array(
    'description' => 'Dump and re-process all possible XML sitemap data, and then regenerate the files.',
    'callback' => 'drush_xmlsitemap_rebuild',
    'drupal dependencies' => array(
      'xmlsitemap',
    ),
    'options' => array(
      'types' => 'The types of links to rebuild, comma separated. If not provided, all link types will be used.',
    ),
  );
  $items['xmlsitemap-index'] = array(
    'description' => 'Process un-indexed XML sitemap links.',
    'callback' => 'drush_xmlsitemap_index',
    'drupal dependencies' => array(
      'xmlsitemap',
    ),
    'options' => array(
      'limit' => 'The limit of links of each type to process. Default value: ' . variable_get('xmlsitemap_batch_limit', XMLSITEMAP_BATCH_LIMIT),
    ),
  );
  $items['xmlsitemap-queue-rebuild'] = array(
    'description' => 'Dump and queues all possible XML sitemap data to be re-processed via the xmlsitemap_link_process queue. This command does not regenerate the sitemap files.',
    'options' => array(
      'types' => 'The types of links to queue for rebuild, comma separated. If not provided, all link types will be used.',
      'limit' => 'The number of links to be processed in each queue task.',
    ),
  );
  return $items;
}