You are here

protected function SearchApiAttachmentsLinksAlterSettings::getLinkFields in Search API attachments 7

2 calls to SearchApiAttachmentsLinksAlterSettings::getLinkFields()
SearchApiAttachmentsLinksAlterSettings::alterItems in contrib/search_api_attachments_links/includes/callback_attachments_links_settings.inc
Alter items before indexing.
SearchApiAttachmentsLinksAlterSettings::propertyInfo in contrib/search_api_attachments_links/includes/callback_attachments_links_settings.inc
Adds attachments property.

File

contrib/search_api_attachments_links/includes/callback_attachments_links_settings.inc, line 107
Search API data alteration callback.

Class

SearchApiAttachmentsLinksAlterSettings
@file Search API data alteration callback.

Code

protected function getLinkFields() {
  $ret = array();
  foreach (field_info_fields() as $name => $field) {
    if ($field['type'] == 'link_field') {
      $ret[$name] = $field;
    }
  }
  return $ret;
}