diff options
author | Brett Profitt <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-09 15:35:38 +0000 |
---|---|---|
committer | Brett Profitt <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-09 15:35:38 +0000 |
commit | 1e686be93b0e2ef6505e3721f28b501e2b270b78 (patch) | |
tree | e23a5fce8ef1bf6f256c9989e1eddc51a72655b8 /start.php | |
parent | cd172931a223ba52c28ff542f3768e58b53e4c09 (diff) | |
download | elgg-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.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; } |