You are here

function _asa_get_cck_file_fields in Apache Solr Attachments 5

Return all CCK fields that are of type 'file'

1 call to _asa_get_cck_file_fields()
_asa_get_indexable_files in ./apachesolr_attachments.module
Return all file attachments for a particular node

File

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

Code

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