public function i18n_translation_set::update_delete in Internationalization 7
Update a translation set or delete if empty.
File
- i18n_translation/
i18n_translation.inc, line 106 - Internationalization (i18n) module - Translation set
Class
- i18n_translation_set
- @file Internationalization (i18n) module - Translation set
Code
public function update_delete() {
if ($this
->get_translations()) {
$result = $this
->save(TRUE);
// Update related translation sets too.
$this
->update_related();
return $result;
}
else {
return $this
->delete(TRUE);
}
}