hook_language_types_info_alter

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 hook_language_types_info_alter(array &$language_types)

Perform alterations on language types.

Parameters

$language_types Array of language type definitions.

Related topics

Code

modules/locale/locale.api.php, line 107

<?php
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.');
  }
}
?>