function i18n_object in Internationalization 7
Get object wrapper.
Create an object wrapper or retrieve it from the static cache if a wrapper for the same object was created before.
Parameters
$type: The object type.
See also
4 calls to i18n_object()
- i18n_field_page_translate in i18n_field/
i18n_field.pages.inc - Field translation page
- i18n_string_translate_page_object in i18n_string/
i18n_string.pages.inc - Generate translate page from object.
- i18n_translation_set::add_item in i18n_translation/
i18n_translation.inc - Add translation item
- i18n_translation_set::remove_item in i18n_translation/
i18n_translation.inc - Remove item / language from translation set
File
- ./
i18n.module, line 384 - Internationalization (i18n) module.
Code
function i18n_object($type, $object) {
$key = i18n_object_key($type, $object);
return i18n_get_object($type, $key, $object);
}