You are here

public function i18n_translation_set::insert in Internationalization 7

Create a new translation set

Parameters

$save_translations: Whether to update linked objects so they belong to this set.

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

File

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

Class

i18n_translation_set
@file Internationalization (i18n) module - Translation set

Code

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