summaryrefslogtreecommitdiff
path: root/modules/locale/locale.api.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/locale/locale.api.php')
-rw-r--r--modules/locale/locale.api.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/locale/locale.api.php b/modules/locale/locale.api.php
index 6f6504f4b..90f6132dd 100644
--- a/modules/locale/locale.api.php
+++ b/modules/locale/locale.api.php
@@ -57,6 +57,8 @@ function hook_language_switch_links_alter(array &$links, $type, $path) {
* the following key-value pairs:
* - "name": The human-readable language type identifier.
* - "description": A description of the language type.
+ * - "fixed": An array of language provider identifiers. Defining this key
+ * makes the language type non-configurable.
*/
function hook_language_types_info() {
return array(
@@ -64,6 +66,9 @@ function hook_language_types_info() {
'name' => t('Custom language'),
'description' => t('A custom language type.'),
),
+ 'fixed_custom_language_type' => array(
+ 'fixed' => array('custom_language_provider'),
+ ),
);
}