aboutsummaryrefslogtreecommitdiff
path: root/mod/file/start.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-12-31 18:04:13 +0100
committerSem <sembrestels@riseup.net>2011-12-31 18:04:13 +0100
commit09d2e60aca5c6d1932f618472e962baa09efd736 (patch)
tree82cbb2ec5d3c875bde7aadb52d4af8ea508f084b /mod/file/start.php
parent6ca771fd570122e1ec80952c1169c7399f083243 (diff)
downloadelgg-09d2e60aca5c6d1932f618472e962baa09efd736.tar.gz
elgg-09d2e60aca5c6d1932f618472e962baa09efd736.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.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/file/start.php b/mod/file/start.php
index e15a9ad61..3e1ae169d 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -233,6 +233,10 @@ function file_owner_block_menu($hook, $type, $return, $params) {
*/
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":
return "document";
@@ -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
+}