function facetapi_callback_language_values in Facet API 6
Returns values for the language facet.
Parameters
$facet: An array containing the facet definition.
Return value
An array of values passed as options to the form element.
1 string reference to 'facetapi_callback_language_values'
- facetapi_facetapi_facet_info in ./
facetapi.module - Implementation of hook_facetapi_facet_info().
File
- ./
facetapi.callbacks.inc, line 148 - Various callbacks referenced in facet definitions.
Code
function facetapi_callback_language_values(array $facet) {
$options = array(
'und' => t('Language neutral'),
);
foreach (language_list() as $code => $language) {
$options[$code] = check_plain($language->name);
}
return $options;
}