function xmlsitemap_clear_directory in XML sitemap 7.2
Same name and namespace in other branches
- 8 xmlsitemap.module \xmlsitemap_clear_directory()
- 6.2 xmlsitemap.module \xmlsitemap_clear_directory()
- 2.x xmlsitemap.module \xmlsitemap_clear_directory()
Clear Directory.
4 calls to xmlsitemap_clear_directory()
- XMLSitemapUnitTest::testClearDirectory in ./
xmlsitemap.test - Test 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 928 - xmlsitemap XML sitemap
Code
function xmlsitemap_clear_directory(stdClass $sitemap = NULL, $delete = FALSE) {
if ($directory = xmlsitemap_get_directory($sitemap)) {
return _xmlsitemap_delete_recursive($directory, $delete);
}
else {
return FALSE;
}
}