aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file')
-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 36142533f..ad88469c8 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";
@@ -397,4 +401,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
+}