aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'start.php')
-rw-r--r--start.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/start.php b/start.php
index bd772b067..93d011dae 100644
--- a/start.php
+++ b/start.php
@@ -248,6 +248,13 @@ function videolist_embed_get_items($hook, $type, $value, $params) {
* @param string $size Not used yet. Not sure if possible.
*/
function videolist_get_entity_icon_url(ElggEntity $entity, $size = 'medium') {
+
+ // tiny thumbnails are too small to be useful, so give a generic video icon
+ if ($size == 'tiny') {
+ global $CONFIG;
+ return "{$CONFIG->url}mod/videolist/graphics/video_icon_tiny.png";
+ }
+
return $entity->thumbnail;
}