You are here

function _xmlsitemap_rebuild_form_access in XML sitemap 6.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \_xmlsitemap_rebuild_form_access()
  2. 7.2 xmlsitemap.module \_xmlsitemap_rebuild_form_access()
  3. 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 199
Main file for the xmlsitemap module.

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');
}