You are here

function i18n_translation_set_delete_confirm_submit in Internationalization 7

Execute translation set deletion

File

i18n_translation/i18n_translation.module, line 343
Internationalization (i18n) module - Entity translations

Code

function i18n_translation_set_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    $set = i18n_translation_set_load($form_state['values']['tsid']);
    $set
      ->delete(TRUE);
    drupal_set_message(t('The translation set has been deleted.'));
  }
  $form_state['redirect'] = i18n_translation_set_info($set->type, 'list path');
}