public function i18n_translation_set::delete_translations in Internationalization 7
Delete translations in this translation set
It won't delete objects, just unlink them from translation set
2 calls to i18n_translation_set::delete_translations()
- i18n_translation_set::delete in i18n_translation/
i18n_translation.inc - Delete a translation set
- i18n_translation_set::save_translations in i18n_translation/
i18n_translation.inc - Save translations in this translation set
1 method overrides i18n_translation_set::delete_translations()
- i18n_path_translation_set::delete_translations in i18n_path/
i18n_path.inc - Delete translation set
File
- i18n_translation/
i18n_translation.inc, line 166 - Internationalization (i18n) module - Translation set
Class
- i18n_translation_set
- @file Internationalization (i18n) module - Translation set
Code
public function delete_translations() {
if (($table = $this
->get_table()) && ($field = $this
->get_field())) {
return db_update($table)
->fields(array(
$field => 0,
))
->condition($field, $this->tsid)
->execute();
}
}