You are here

function i18n_language_field_extra in Internationalization 7

Get language field for hook_field_extra_fields()

2 calls to i18n_language_field_extra()
i18n_node_field_extra_fields in i18n_node/i18n_node.module
Implements hook_field_extra_fields().
i18n_taxonomy_field_extra_fields in i18n_taxonomy/i18n_taxonomy.module
Implements hook_field_extra_fields().

File

./i18n.module, line 175
Internationalization (i18n) module.

Code

function i18n_language_field_extra() {
  return array(
    'form' => array(
      'language' => array(
        'label' => t('Language'),
        'description' => t('Language selection'),
        'weight' => 0,
      ),
    ),
    'display' => array(
      'language' => array(
        'label' => t('Language'),
        'description' => t('Language'),
        'weight' => 0,
      ),
    ),
  );
}