| Versions | |
|---|---|
| 7 | hook_language_types_info() |
Allow modules to define their own language types.
An array of language type definitions. Each language type has an identifier key. The language type definition is an associative array that may contain the following key-value pairs:
drupal/
<?php
function hook_language_types_info() {
return array(
'custom_language_type' => array(
'name' => t('Custom language'),
'description' => t('A custom language type.'),
),
'fixed_custom_language_type' => array(
'fixed' => array('custom_language_provider'),
),
);
}
?>