You are here

function geoip_admin_delete_mapping in GeoIP API 7

Same name and namespace in other branches
  1. 6 geoip_language/geoip_language.admin.inc \geoip_admin_delete_mapping()

Create the confirmmation form for deleting a mapping item.

1 string reference to 'geoip_admin_delete_mapping'
geoip_language_menu in geoip_language/geoip_language.module
Implements hook_menu().

File

geoip_language/geoip_language.admin.inc, line 105
Admin page callbacks for the GeoIP Language module.

Code

function geoip_admin_delete_mapping(&$form_state, $country) {
  $form['country'] = array(
    '#type' => 'value',
    '#value' => $country,
  );
  return confirm_form($form, t('Are you sure you want to delete this mapping?'), isset($_GET['destination']) ? $_GET['destination'] : 'admin/settings/language/geoip', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}