function i18n_object_key in Internationalization 7
Get key value from object/array
1 call to i18n_object_key()
- i18n_object in ./
i18n.module - Get object wrapper.
File
- ./
i18n.module, line 489 - Internationalization (i18n) module.
Code
function i18n_object_key($type, $object, $default = NULL) {
if ($field = i18n_object_info($type, 'key')) {
return i18n_object_field($object, $field, $default);
}
else {
return $default;
}
}