function facetapi_callback_type_map in Facet API 6
Converts machine readable content types to display names.
Parameters
$types: An array containing the machine readable content types.
Return value
An array mapping the machine readable content types to the display names.
1 string reference to 'facetapi_callback_type_map'
- facetapi_facetapi_facet_info in ./
facetapi.module - Implementation of hook_facetapi_facet_info().
File
- ./
facetapi.callbacks.inc, line 40 - Various callbacks referenced in facet definitions.
Code
function facetapi_callback_type_map(array $types) {
$sql = '
SELECT type AS id, name
FROM {node_type}
WHERE type IN (!placeholders)
';
return facetapi_map_query($sql, $types, 'varchar');
}