You are here

function _locale_string_delete in Drupal 4

Same name and namespace in other branches
  1. 5 includes/locale.inc \_locale_string_delete()

Delete a language string.

1 call to _locale_string_delete()
locale_string_delete_confirm_submit in modules/locale.module

File

includes/locale.inc, line 432
Admin-related functions for locale.module.

Code

function _locale_string_delete($lid) {
  db_query('DELETE FROM {locales_source} WHERE lid = %d', $lid);
  db_query('DELETE FROM {locales_target} WHERE lid = %d', $lid);
  locale_refresh_cache();
  drupal_set_message(t('The string has been removed.'));
  drupal_goto('admin/locale/string/search');
}