function xmlsitemap_sitemap_edit_form_submit in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap.admin.inc \xmlsitemap_sitemap_edit_form_submit()
File
- ./
xmlsitemap.admin.inc, line 238 - Administrative page callbacks for the xmlsitemap module.
Code
function xmlsitemap_sitemap_edit_form_submit($form, &$form_state) {
$sitemap = (object) $form_state['values'];
xmlsitemap_sitemap_save($sitemap);
drupal_set_message(t('The sitemap has been saved.'));
$form_state['redirect'] = 'admin/settings/xmlsitemap';
}