function drush_xmlsitemap_rebuild in XML sitemap 8
Same name and namespace in other branches
- 6.2 xmlsitemap.drush.inc \drush_xmlsitemap_rebuild()
- 7.2 xmlsitemap.drush.inc \drush_xmlsitemap_rebuild()
Dump and rebuild all the sitemap data, then regenerate the files.
1 string reference to 'drush_xmlsitemap_rebuild'
- xmlsitemap_drush_command in ./
xmlsitemap.drush.inc - Implements hook_drush_command().
File
- ./
xmlsitemap.drush.inc, line 47 - Drush integration functions for the xmlsitemap module.
Code
function drush_xmlsitemap_rebuild() {
// Build a list of rebuildable link types.
$rebuild_types = xmlsitemap_get_rebuildable_link_types();
if (empty($rebuild_types)) {
return drush_log(dt('No link types are rebuildable.'), 'warning');
}
$batch = xmlsitemap_rebuild_batch($rebuild_types, TRUE);
batch_set($batch);
drush_backend_batch_process();
}