From 1e686be93b0e2ef6505e3721f28b501e2b270b78 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Wed, 9 Jun 2010 15:35:38 +0000 Subject: getIcon() override for object/video returns a generic icon if size == tiny. git-svn-id: http://code.elgg.org@6421 36083f99-b078-4883-b0ff-0f9b5a30f544 --- start.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'start.php') 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; } -- cgit v1.2.3