You are here

function xmlsitemap_rebuild_form_submit in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap.admin.inc \xmlsitemap_rebuild_form_submit()

Submit handler; Starts the sitemap rebuild batch.

See also

xmlsitemap_rebuild_form()

xmlsitemap_rebuild_batch()

File

./xmlsitemap.admin.inc, line 552
Administrative page callbacks for the xmlsitemap module.

Code

function xmlsitemap_rebuild_form_submit($form, &$form_state) {
  module_load_include('generate.inc', 'xmlsitemap');
  $batch = xmlsitemap_rebuild_batch($form_state['values']['entities'], $form_state['values']['save_custom']);
  batch_set($batch);
  $form_state['redirect'] = 'admin/config/search/xmlsitemap';
}