You are here

function xmlsitemap_sitemap_edit_form_submit in XML sitemap 7.2

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

Edit Form Submit.

File

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

Code

function xmlsitemap_sitemap_edit_form_submit($form, &$form_state) {
  form_state_values_clean($form_state);
  $sitemap = (object) $form_state['values'];
  xmlsitemap_sitemap_save($sitemap);
  drupal_set_message(t('The sitemap has been saved.'));
  $form_state['redirect'] = 'admin/config/search/xmlsitemap';
}