/**
* Get translation information for objects
*/
-function i18n_object_info($type = NULL) {
+function i18n_object_info($type = NULL, $property = NULL) {
$info = &drupal_static(__FUNCTION__);
if (!$info) {
$info = module_invoke_all('i18n_object_info');
drupal_alter('i18n_object_info', $info);
}
- if ($type) {
+ if ($property) {
+ return isset($info[$type][$property]) ? $info[$type][$property] : NULL;
+ }
+ elseif ($type) {
return isset($info[$type]) ? $info[$type] : array();
}
else {