You are here

public function i18n_translation_set::update in Internationalization 7

Update a translation set

Parameters

$update_translations: Whether to update objects linked to this set.

1 call to i18n_translation_set::update()
i18n_translation_set::save in i18n_translation/i18n_translation.inc
Save translation set

File

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

Class

i18n_translation_set
@file Internationalization (i18n) module - Translation set

Code

public function update($update_translations = TRUE) {
  $this->changed = REQUEST_TIME;
  $status = drupal_write_record('i18n_translation_set', $this, 'tsid');
  if ($update_translations) {
    $this
      ->clean_translations();
    $this
      ->save_translations();
    $this
      ->update_related();
  }
  $this
    ->invoke_all('update');
  return $status;
}