function apachesolr_attachments_search in Apache Solr Attachments 6
Same name and namespace in other branches
- 5 apachesolr_attachments.module \apachesolr_attachments_search()
- 6.2 apachesolr_attachments.module \apachesolr_attachments_search()
Implementation of hook_search().
1 call to apachesolr_attachments_search()
- apachesolr_attachments_help in ./apachesolr_attachments.module 
- Implementation of hook_help().
File
- ./apachesolr_attachments.module, line 75 
- Provides a file attachment search implementation for use with the Apache Solr module
Code
function apachesolr_attachments_search($op = 'search', $keys = NULL) {
  switch ($op) {
    case 'name':
      return '';
    // We dont want a tab
    case 'reset':
      apachesolr_clear_last_index('apachesolr_attachments');
      return;
    case 'status':
      // TODO: Figure out a way to know how many actual files are left to update.
      return apachesolr_index_status('apachesolr_attachments');
    case 'search':
      return array();
  }
}