function _search_api_add_option_values in Search API 7
Helper method for adding additional text data to fields with an option list.
1 call to _search_api_add_option_values()
- search_api_extract_fields in ./
search_api.module - Extracts specific field values from an EntityMetadataWrapper object.
File
- ./
search_api.module, line 2556 - Provides a flexible framework for implementing search services.
Code
function _search_api_add_option_values(&$value, array $options) {
if (is_array($value)) {
foreach ($value as &$v) {
_search_api_add_option_values($v, $options);
}
return;
}
if (is_scalar($value) && isset($options[$value])) {
$value .= ' ' . $options[$value];
}
}