You are here

protected function SearchApiAttachmentsAlterSettings::pdfMimetypes in Search API attachments 7

Helper function to store pdf's mimetypes.

Return value

array Supported mime types.

1 call to SearchApiAttachmentsAlterSettings::pdfMimetypes()
SearchApiAttachmentsAlterSettings::getFileContent in includes/callback_attachments_settings.inc
Extracts th file content.

File

includes/callback_attachments_settings.inc, line 671
Search API data alteration callback.

Class

SearchApiAttachmentsAlterSettings
Indexes files content.

Code

protected function pdfMimetypes() {
  return array(
    'application/pdf',
    'application/x-pdf',
    'application/acrobat',
    'text/x-pdf',
    'text/pdf',
    'applications/vnd.pdf',
  );
}