function _xmlsitemap_rebuild_form_access in XML sitemap 7.2
Same name and namespace in other branches
- 8 xmlsitemap.module \_xmlsitemap_rebuild_form_access()
- 6.2 xmlsitemap.module \_xmlsitemap_rebuild_form_access()
- 2.x xmlsitemap.module \_xmlsitemap_rebuild_form_access()
Menu access callback; determines if the user can use the rebuild links page.
1 call to _xmlsitemap_rebuild_form_access()
- xmlsitemap_requirements in ./
xmlsitemap.install - Implements hook_requirements().
1 string reference to '_xmlsitemap_rebuild_form_access'
- xmlsitemap_menu in ./
xmlsitemap.module - Implements hook_menu().
File
- ./
xmlsitemap.module, line 236 - xmlsitemap XML sitemap
Code
function _xmlsitemap_rebuild_form_access() {
module_load_include('generate.inc', 'xmlsitemap');
$rebuild_types = xmlsitemap_get_rebuildable_link_types();
return !empty($rebuild_types) && user_access('administer xmlsitemap');
}