You are here

public function i18n_path_translation_set::add_item in Internationalization 7

Add translation item

Overrides i18n_translation_set::add_item

1 call to i18n_path_translation_set::add_item()
i18n_path_translation_set::save_translations in i18n_path/i18n_path.inc
Save all path translations

File

i18n_path/i18n_path.inc, line 10
Internationalization (i18n) module - Translation set

Class

i18n_path_translation_set
@file Internationalization (i18n) module - Translation set

Code

public function add_item($path, $langcode = NULL) {

  // Path may be object or plain string
  $item = is_object($path) ? $path : (object) array(
    'path' => $path,
    'language' => $langcode,
  );
  return parent::add_item($item, $langcode);
}