aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorBrett Profitt <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-09 15:35:38 +0000
committerBrett Profitt <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-09 15:35:38 +0000
commit1e686be93b0e2ef6505e3721f28b501e2b270b78 (patch)
treee23a5fce8ef1bf6f256c9989e1eddc51a72655b8 /start.php
parentcd172931a223ba52c28ff542f3768e58b53e4c09 (diff)
downloadelgg-1e686be93b0e2ef6505e3721f28b501e2b270b78.tar.gz
elgg-1e686be93b0e2ef6505e3721f28b501e2b270b78.tar.bz2
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
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;
}