1 language.inc | language_types_get_configurable() |
Returns only the configurable language types.
A language type may be configurable or fixed. A fixed language type is a type whose language negotiation providers are module-defined and not altered through the user interface.
Return value
An array of language type names.:
Related topics
File
- core/
includes/ language.inc, line 172 - Language Negotiation API.
Code
function language_types_get_configurable() {
$configurable = &backdrop_static(__FUNCTION__);
if (!isset($configurable)) {
$configurable = array();
foreach (language_types_info() as $type => $info) {
if (!isset($info['fixed'])) {
$configurable[] = $type;
}
}
}
return $configurable;
}