You are here

protected function SearchApiAttachmentsAlterSettings::textMimetypes in Search API attachments 7

Helper function to store text's mimetypes.

Return value

array Supported mime types.

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

File

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

Class

SearchApiAttachmentsAlterSettings
Indexes files content.

Code

protected function textMimetypes() {
  return array(
    'text/plain',
    'text/x-diff',
  );
}