/** * Add a callback for displaying files with a given mimetype and/or extension. * * @package Omeka\Function\Plugin * @uses Omeka_View_Helper_FileMarkup::addMimeTypes() See for info on usage. * @param array|string $fileIdentifiers Set of MIME types and/or file extensions * to which the provided callback will respond. * @param callback $callback Any valid callback. * @param array $options */ function add_file_display_callback($fileIdentifiers, $callback, array $options = array()) { Omeka_View_Helper_FileMarkup::addMimeTypes($fileIdentifiers, $callback, $options); }
public function hookInitialize($args) { Omeka_View_Helper_FileMarkup::addMimeTypes(array('application/xml', 'text/xml'), 'TeiDisplayPlugin::TeiDisplay'); Omeka_View_Helper_FileMarkup::addMimeTypes('text/x-c', 'TeiDisplayPlugin::CssDisplay'); }