1 language.inc | language_negotiation_order($type) |
Get the language negotiator provider order for a language type.
Parameters
$type: The language negotiation type.
Return value
array: An array of language negotiation providers.
Related topics
File
- core/
includes/ language.inc, line 362 - Language Negotiation API.
Code
function language_negotiation_order($type) {
$types = language_types_info();
if (isset($types[$type]['fixed'])) {
return $types[$type]['fixed'];
}
elseif ($configured_order = config_get('language.settings', "language_negotiation.$type")) {
return $configured_order;
}
else {
return array();
}
}