You are here

function xmlsitemap_rebuild_form_submit in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.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 492
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/settings/xmlsitemap';
}