protected function SearchApiAttachmentsEntityreferenceAlterSettings::getFileFields in Search API attachments 7
Helper method to get all file fields.
Return value
array contaigning all the file fields names.
Overrides SearchApiAttachmentsAlterSettings::getFileFields
2 calls to SearchApiAttachmentsEntityreferenceAlterSettings::getFileFields()
- 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 108 - Search API data alteration callback.
Class
Code
protected function getFileFields() {
$ret = array();
foreach (field_info_fields() as $name => $field) {
if ($field['type'] == 'file') {
$ret[$name] = $field;
}
}
return $ret;
}