hook_language_types_info_alter

hook_language_types_info_alter(array &$language_types)

Perform alterations on language types.

Parameters

array $language_types: Array of language type definitions.

See also

hook_language_types_info()

Related topics

Hooks
Define functions that alter the behavior of Drupal core.

File

core/modules/language/language.api.php, line 60
Hooks provided by the Language 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.');
  }
}
doc_Drupal
2016-10-29 09:18:19
Comments
Leave a Comment

Please login to continue.