function apachesolr_attachments_apachesolr_types_exclude in Apache Solr Attachments 6.2
Same name and namespace in other branches
- 6 apachesolr_attachments.module \apachesolr_attachments_apachesolr_types_exclude()
Implementation of hook_apachesolr_types_exclude().
File
- ./
apachesolr_attachments.module, line 94 - Provides a file attachment search implementation for use with the Apache Solr module
Code
function apachesolr_attachments_apachesolr_types_exclude($namespace) {
if ($namespace == 'apachesolr_attachments') {
if (variable_get('apachesolr_attachments_exclude_types', 1)) {
$excluded_types = variable_get('apachesolr_search_excluded_types', array());
return array_filter($excluded_types);
}
return array();
}
}