You are here

protected function SearchApiAlterAddCombined::fieldDescription in Search API Combined Fields 7

Helper method for creating a field description.

1 call to SearchApiAlterAddCombined::fieldDescription()
SearchApiAlterAddCombined::configurationFormSubmit in ./callback_add_combined.inc
Implements SearchApiAlterCallbackInterface::configurationFormSubmit().

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),
  ));
}