protected function SearchApiAttachmentsEntityreferenceAlterSettings::getEntityReferenceFields in Search API attachments 7
2 calls to SearchApiAttachmentsEntityreferenceAlterSettings::getEntityReferenceFields()
- SearchApiAttachmentsEntityreferenceAlterSettings::alterItems in contrib/
search_api_attachments_entityreference/ includes/ callback_attachments_entityreference_settings.inc - Alter items before indexing.
- SearchApiAttachmentsEntityreferenceAlterSettings::propertyInfo in contrib/
search_api_attachments_entityreference/ includes/ callback_attachments_entityreference_settings.inc - Adds attachments property.
File
- contrib/
search_api_attachments_entityreference/ includes/ callback_attachments_entityreference_settings.inc, line 121 - Search API data alteration callback.
Class
Code
protected function getEntityReferenceFields() {
$ret = array();
foreach (field_info_fields() as $name => $field) {
if ($field['type'] == 'entityreference') {
$ret[$name] = $field;
}
}
return $ret;
}