You are here

function xmlsitemap_custom_delete_link_form in XML sitemap 7.2

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

Delete Link Form.

1 string reference to 'xmlsitemap_custom_delete_link_form'
xmlsitemap_custom_menu in xmlsitemap_custom/xmlsitemap_custom.module
Implements hook_menu().

File

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

Code

function xmlsitemap_custom_delete_link_form($form, &$form_state, array $link) {

  // @todo Remove when https://www.drupal.org/node/576290 is fixed.
  _xmlsitemap_set_breadcrumb('admin/config/search/xmlsitemap/custom');
  $form['#link'] = $link;
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $link['id'],
  );
  $form['link'] = array(
    '#type' => 'value',
    '#value' => $link,
  );
  return confirm_form($form, t('Are you sure you want to delete the custom link for %loc?', array(
    '%loc' => $link['loc'],
  )), 'admin/config/search/xmlsitemap/custom', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}