You are here

function apachesolr_attachments_get_cck_file_fields in Apache Solr Attachments 6

Same name and namespace in other branches
  1. 6.2 apachesolr_attachments.admin.inc \apachesolr_attachments_get_cck_file_fields()

Return all CCK fields that are of type 'file'

1 call to apachesolr_attachments_get_cck_file_fields()
apachesolr_attachments_get_indexable_files in ./apachesolr_attachments.admin.inc
Return all non-excluded file attachments for a particular node

File

./apachesolr_attachments.admin.inc, line 386
Provides a file attachment search implementation for use with the Apache Solr module

Code

function apachesolr_attachments_get_cck_file_fields() {
  $file_fields = array();
  if (module_exists('filefield')) {
    $fields = content_fields();
    foreach ($fields as $key => $values) {
      if ($values['type'] == 'filefield') {
        $file_fields[] = $key;
      }
    }
  }
  return $file_fields;
}