You are here

function i18n_translation_set_info in Internationalization 7

Get information about translation sets

10 calls to i18n_translation_set_info()
i18n_object_wrapper::get_translation_info in ./i18n_object.inc
Get object translation set info
i18n_page_menu_items in ./i18n.pages.inc
Create menu items for translatable objecs
i18n_translation_check_object in i18n_translation/i18n_translation.module
Check whether this object can be part of a translation set
i18n_translation_entity_info in i18n_translation/i18n_translation.module
Implements hook_entity_info().
i18n_translation_object in i18n_translation/i18n_translation.module
Get translation set for object

... See full list

1 string reference to 'i18n_translation_set_info'
i18n_object_wrapper::get_translation_info in ./i18n_object.inc
Get object translation set info

File

i18n_translation/i18n_translation.module, line 232
Internationalization (i18n) module - Entity translations

Code

function i18n_translation_set_info($type = NULL, $property = NULL, $default = NULL) {
  $info =& drupal_static(__FUNCTION__);
  if (!$info) {
    $info = module_invoke_all('i18n_translation_set_info');
    drupal_alter('i18n_translation_set_info', $info);
  }
  if ($property && $type) {
    return isset($info[$type][$property]) ? $info[$type][$property] : $default;
  }
  elseif ($type) {
    return isset($info[$type]) ? $info[$type] : $default;
  }
  else {
    return $info;
  }
}