You are here

function xmlsitemap_sitemap_delete_form_submit in XML sitemap 6.2

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

File

./xmlsitemap.admin.inc, line 268
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/settings/xmlsitemap';
}