function apachesolr_cck_text_field_callback in Apache Solr Search 5.2
Same name and namespace in other branches
- 6.2 apachesolr.module \apachesolr_cck_text_field_callback()
Use the content.module's content_format() to format the field based on its value ($facet).
Parameters
$facet string: The indexed value @param $options An array of options including the hook_block $delta.
1 string reference to 'apachesolr_cck_text_field_callback'
- apachesolr_cck_fields in ./
apachesolr.module - Invokes hook_apachesolr_cck_field_mappings to find out how to handle CCK fields.
File
- ./
apachesolr.module, line 1492 - Integration with the Apache Solr search application.
Code
function apachesolr_cck_text_field_callback($facet, $options) {
if (function_exists('content_format')) {
return content_format($options['delta'], array(
'value' => $facet,
));
}
else {
return $facet;
}
}