protected function SearchApiAlterAddCombined::fieldDescription in Search API Combined Fields 7
Helper method for creating a field description.
1 call to SearchApiAlterAddCombined::fieldDescription()
File
- ./
callback_add_combined.inc, line 221
Class
- SearchApiAlterAddCombined
- Search API data alteration callback that adds an URL field for all items.
Code
protected function fieldDescription(array $field, array $index_fields) {
$fields = array();
foreach ($field['fields'] as $f) {
$fields[] = isset($index_fields[$f]) ? $index_fields[$f]['name'] : $f;
}
return t('A @type combined of the following fields: @fields.', array(
'@fields' => implode(', ', $fields),
));
}