protected function SearchApiAttachmentsMultifieldAlterSettings::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
1 call to SearchApiAttachmentsMultifieldAlterSettings::getFileFields()
- SearchApiAttachmentsMultifieldAlterSettings::propertyInfo in contrib/
search_api_attachments_multifield/ includes/ callback_attachments_multifield_settings.inc - Adds attachments property.
File
- contrib/
search_api_attachments_multifield/ includes/ callback_attachments_multifield_settings.inc, line 110 - 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;
}