You are here

public function i18n_translation_set::delete in Internationalization 7

Delete a translation set

Parameters

$delete_translations: Whether to unlink translations from the set. Detaults to TRUE.

1 call to i18n_translation_set::delete()
i18n_translation_set::update_delete in i18n_translation/i18n_translation.inc
Update a translation set or delete if empty.

File

i18n_translation/i18n_translation.inc, line 38
Internationalization (i18n) module - Translation set

Class

i18n_translation_set
@file Internationalization (i18n) module - Translation set

Code

public function delete($delete_translations = TRUE) {
  db_delete('i18n_translation_set')
    ->condition('tsid', $this->tsid)
    ->execute();
  if ($delete_translations) {
    $this
      ->delete_translations();
  }
  $this
    ->invoke_all('delete');
  $this->tsid = NULL;
}