You are here

function geoip_admin_delete_mapping_submit in GeoIP API 7

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

Process a confirmed delete request of a mapping item.

File

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

Code

function geoip_admin_delete_mapping_submit($form, &$form_state) {
  geoip_language_mapping_delete($form_state['values']['country']);
  $countries = geoip_country_values();
  drupal_set_message(t('GeoIP mapping deleted for %country.', array(
    '%country' => $countries[$form_state['values']['country']],
  )));
  $form_state['redirect'] = 'admin/settings/language/geoip';
}