diff options
author | Sem <sembrestels@riseup.net> | 2011-12-31 04:37:59 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2011-12-31 04:37:59 +0100 |
commit | 5c842ef16d47f02ea4912349a108766743a706b7 (patch) | |
tree | 450d89f4fc775e5efe882bd3d4bcf63eeb5b1e1b /mod/file/start.php | |
parent | e49df853b2cc3a6a9bc2dd527a64951050142eb9 (diff) | |
download | elgg-5c842ef16d47f02ea4912349a108766743a706b7.tar.gz elgg-5c842ef16d47f02ea4912349a108766743a706b7.tar.bz2 |
Added hook trigger to allow plugins solve problems with mime types.
Diffstat (limited to 'mod/file/start.php')
-rw-r--r-- | mod/file/start.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/file/start.php b/mod/file/start.php index e15a9ad61..8c8883b6e 100644 --- a/mod/file/start.php +++ b/mod/file/start.php @@ -232,6 +232,10 @@ function file_owner_block_menu($hook, $type, $return, $params) { * @return string The overall type */ function file_get_simple_type($mimetype) { + + if($type = elgg_trigger_plugin_hook('file_simple_type', 'object', $params, null)) { + return $type; + } switch ($mimetype) { case "application/msword": @@ -396,4 +400,4 @@ function file_icon_url_override($hook, $type, $returnvalue, $params) { $url = elgg_trigger_plugin_hook('file:icon:url', 'override', $params, $url); return $url; } -}
\ No newline at end of file +} |