You are here

function xmlsitemap_custom_edit_link_form_submit in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap_custom/xmlsitemap_custom.admin.inc \xmlsitemap_custom_edit_link_form_submit()

Edit Link Form Submit.

File

xmlsitemap_custom/xmlsitemap_custom.admin.inc, line 177
Administrative page callbacks for the xmlsitemap_custom.

Code

function xmlsitemap_custom_edit_link_form_submit($form, &$form_state) {
  $link = $form_state['values'];
  xmlsitemap_link_save($link);
  drupal_set_message(t('The custom link for %loc was saved.', array(
    '%loc' => $link['loc'],
  )));
  $form_state['redirect'] = 'admin/config/search/xmlsitemap/custom';
}