function xmlsitemap_custom_delete_link_form_submit in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap_custom/xmlsitemap_custom.admin.inc \xmlsitemap_custom_delete_link_form_submit()
File
- xmlsitemap_custom/
xmlsitemap_custom.admin.inc, line 186 - Administrative page callbacks for the xmlsitemap_custom module.
Code
function xmlsitemap_custom_delete_link_form_submit($form, &$form_state) {
$link = $form_state['values']['link'];
xmlsitemap_link_delete('custom', $link['id']);
drupal_set_message(t('The custom link for %loc has been deleted.', array(
'%loc' => $link['loc'],
)));
watchdog('xmlsitemap', 'The custom link for %loc has been deleted.', array(
'%loc' => $link['loc'],
), WATCHDOG_NOTICE);
$form_state['redirect'] = 'admin/settings/xmlsitemap/custom';
}