public function i18n_path_translation_set::save_translations in Internationalization 7
Save all path translations
Overrides i18n_translation_set::save_translations
File
- i18n_path/
i18n_path.inc, line 37 - Internationalization (i18n) module - Translation set
Class
- i18n_path_translation_set
- @file Internationalization (i18n) module - Translation set
Code
public function save_translations() {
foreach ($this
->get_translations() as $lang => $path) {
$path = is_object($path) ? $path : (object) array(
'path' => $path,
'language' => $lang,
'tsid' => $this->tsid,
);
drupal_write_record('i18n_path', $path, !empty($path->tpid) ? 'tpid' : array());
$this
->add_item($path, $lang);
}
}