Skip navigation
Help

hook_language_types_info_alter

7 locale.api.php hook_language_types_info_alter(array &$language_types)

Perform alterations on language types.

Parameters

$language_types: Array of language type definitions.

Related topics

1 function implements hook_language_types_info_alter()

1 invocation of hook_language_types_info_alter()

File

drupal/modules/locale/locale.api.php, line 107
Hooks provided by the Locale module.

Code

function hook_language_types_info_alter(array &$language_types) {
  if (isset($language_types['custom_language_type'])) {
    $language_types['custom_language_type_custom']['description'] = t('A far better description.');
  }
}