You are here

function geoip_admin_delete_mapping in GeoIP API 6

Same name and namespace in other branches
  1. 7 geoip_language/geoip_language.admin.inc \geoip_admin_delete_mapping()
1 string reference to 'geoip_admin_delete_mapping'
geoip_language_menu in geoip_language/geoip_language.module
Implementation of hook_menu().

File

geoip_language/geoip_language.admin.inc, line 96
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'));
}