Islandora/islandora — pull request #308 by andrewfreddin (2013-04-10 14:47:34+00:00)
Title: updated mime_detect.inc to use internal drupal file_mimetype_mapping fun...

...ction

A SimpleTest file has also been included to allow you to test this file
for errors.

Please note the require once directive at the top of
tests/MimeClass.test. I am not sure if this is Drupal kosher, but the
test wouldn't work without it.
There is probably a way around this include statement but I will leave
this to the Drupal experts.

Note that the Drupal 7 function file_mimetype_mapping has a Drupal alter
statement:

// Allow modules to alter the default mapping.
drupal_alter('file_mimetype_mapping', $mapping);

using this hook, you can add to this internal mime type list without
updating drupal core.

Hope this helps! If there are any questions please feel free to email me
at andrewfreddin@gmail.com