You are here

function i18n_node_field_extra_fields in Internationalization 7

Implements hook_field_extra_fields().

File

i18n_node/i18n_node.module, line 15
Internationalization (i18n) module - Node type handling

Code

function i18n_node_field_extra_fields() {
  $return = array();
  $info = entity_get_info('node');
  foreach (array_keys($info['bundles']) as $bundle) {
    if (i18n_node_type_enabled($bundle)) {
      $return['node'][$bundle] = i18n_language_field_extra();
    }
  }
  return $return;
}