function xmlsitemap_custom_edit_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_edit_link_form_submit()
File
- xmlsitemap_custom/
xmlsitemap_custom.admin.inc, line 161 - Administrative page callbacks for the xmlsitemap_custom module.
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/settings/xmlsitemap/custom';
}