function countries_admin_delete_submit in Countries 8
Same name and namespace in other branches
- 7.2 countries.admin.inc \countries_admin_delete_submit()
- 7 countries.admin.inc \countries_admin_delete_submit()
Process countries delete form submission.
File
- ./
countries.admin.inc, line 281 - Admin page callbacks for the Countries module.
Code
function countries_admin_delete_submit($form, &$form_state) {
$country = $form['#country'];
country_delete($country->iso2);
drupal_set_message(t('Deleted country %country.', array(
'%country' => $country->name,
)));
$form_state['redirect'] = 'admin/config/regional/countries';
}