function xmlsitemap_clear_directory in XML sitemap 6.2
Same name and namespace in other branches
- 8 xmlsitemap.module \xmlsitemap_clear_directory()
- 7.2 xmlsitemap.module \xmlsitemap_clear_directory()
- 2.x xmlsitemap.module \xmlsitemap_clear_directory()
3 calls to xmlsitemap_clear_directory()
- xmlsitemap_regenerate_batch_generate in ./
xmlsitemap.generate.inc - Batch callback; generate all pages of a sitemap.
- xmlsitemap_sitemap_delete_multiple in ./
xmlsitemap.module - Delete multiple XML sitemaps.
- xmlsitemap_uninstall in ./
xmlsitemap.install - Implements hook_uninstall().
File
- ./
xmlsitemap.module, line 813 - Main file for the xmlsitemap module.
Code
function xmlsitemap_clear_directory(stdClass $sitemap = NULL, $delete = FALSE) {
$directory = xmlsitemap_get_directory($sitemap);
return _xmlsitemap_delete_recursive($directory, $delete);
}