Commit 20b01e96 authored by Dave Reid's avatar Dave Reid

by Dave Reid: Added back support for the current stable Drush version.

parent 150e3673
...@@ -14,14 +14,17 @@ ...@@ -14,14 +14,17 @@
function xmlsitemap_drush_command() { function xmlsitemap_drush_command() {
$items['xmlsitemap-regenerate'] = array( $items['xmlsitemap-regenerate'] = array(
'description' => 'Regenerate the XML sitemap files.', 'description' => 'Regenerate the XML sitemap files.',
'callback' => 'drush_xmlsitemap_regenerate',
'drupal dependencies' => array('xmlsitemap'), 'drupal dependencies' => array('xmlsitemap'),
); );
$items['xmlsitemap-rebuild'] = array( $items['xmlsitemap-rebuild'] = array(
'description' => 'Dump and re-process all possible XML sitemap data, and then regenerate the files.', 'description' => 'Dump and re-process all possible XML sitemap data, and then regenerate the files.',
'callback' => 'drush_xmlsitemap_rebuild',
'drupal dependencies' => array('xmlsitemap'), 'drupal dependencies' => array('xmlsitemap'),
); );
$items['xmlsitemap-index'] = array( $items['xmlsitemap-index'] = array(
'description' => 'Process un-indexed XML sitemap links.', 'description' => 'Process un-indexed XML sitemap links.',
'callback' => 'drush_xmlsitemap_index',
'drupal dependencies' => array('xmlsitemap'), 'drupal dependencies' => array('xmlsitemap'),
'options' => array( 'options' => array(
'--limit' => 'The limit of links of each type to process. Default value: ' . variable_get('xmlsitemap_batch_limit', 100), '--limit' => 'The limit of links of each type to process. Default value: ' . variable_get('xmlsitemap_batch_limit', 100),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment