function hook_language_types_info_alter

7.x language.api.php hook_language_types_info_alter(array &$language_types)

Perform alterations on language types.

Parameters

$language_types: Array of language type definitions.

See also

hook_language_types_info()

Related topics

1 function implements hook_language_types_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

locale_test_language_types_info_alter in drupal/modules/locale/tests/locale_test.module
Implements hook_language_types_info_alter().
1 invocation of hook_language_types_info_alter()
language_types_info in drupal/includes/language.inc
Returns all the defined language types.

File

drupal/modules/system/language.api.php, line 103
Hooks provided by the base system for language support.

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