function locale_translate_delete_form_submit

Same name and namespace in other branches
  1. 6.x drupal-6.x/includes/locale.inc \locale_translate_delete_form_submit()

Process string deletion submissions.

Related topics

Archivo

drupal-7.x/modules/locale/locale.admin.inc, line 1261
Administration functions for locale.module.

Código

function locale_translate_delete_form_submit($form, &$form_state) {
  db_delete('locales_source')->condition('lid', $form_state['values']['lid'])->execute();
  db_delete('locales_target')->condition('lid', $form_state['values']['lid'])->execute();
  // Force JavaScript translation file recreation for all languages.
  _locale_invalidate_js();
  cache_clear_all('locale:', 'cache', TRUE);
  drupal_set_message(t('The string has been removed.'));
  $form_state['redirect'] = 'admin/config/regional/translate/translate';
}