You are here

function xmlsitemap_sitemap_delete_form_submit in XML sitemap 7.2

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

Delete form submit.

File

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

Code

function xmlsitemap_sitemap_delete_form_submit($form, $form_state) {
  xmlsitemap_sitemap_delete($form_state['values']['smid']);
  drupal_set_message(t('The sitemap has been deleted.'));
  $form_state['redirect'] = 'admin/config/search/xmlsitemap';
}