You are here

function _locale_string_delete in Drupal 5

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

Delete a language string.

1 call to _locale_string_delete()
locale_string_delete_form_submit in modules/locale/locale.module
Process string deletion submissions.

File

includes/locale.inc, line 472
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/settings/locale/string/search');
}