aboutsummaryrefslogtreecommitdiff
path: root/lib/videolist.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-11-06 22:42:30 +0100
committerSem <sembrestels@riseup.net>2011-11-06 22:42:30 +0100
commit84de3a9ab57277bbaedb30c5e24070f8a5ad4431 (patch)
tree17cddf9f8a7e88395366b21aa4ec16b9cc627b2a /lib/videolist.php
parentbd59fd55caede2a13ec00662152e044d2746522c (diff)
downloadelgg-84de3a9ab57277bbaedb30c5e24070f8a5ad4431.tar.gz
elgg-84de3a9ab57277bbaedb30c5e24070f8a5ad4431.tar.bz2
Videolist objects all in one view.
Diffstat (limited to 'lib/videolist.php')
-rw-r--r--lib/videolist.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/videolist.php b/lib/videolist.php
index a71315027..18745dfd1 100644
--- a/lib/videolist.php
+++ b/lib/videolist.php
@@ -89,6 +89,7 @@ function videolist_get_data_youtube($videoid){
'title' => sanitize_string($xml->title),
'description' => sanitize_string($xml->content),
'icon' => "http://img.youtube.com/vi/$videoid/default.jpg",
+ 'videotype' => 'youtube',
);
}
@@ -103,6 +104,7 @@ function videolist_get_data_vimeo($videoid){
'title' => sanitize_string($video->title),
'description' => sanitize_string($video->description),
'icon' => sanitize_string($video->thumbnail_medium),
+ 'videotype' => 'vimeo',
);
}
@@ -119,5 +121,6 @@ function videolist_get_data_metacafe($videoid){ //FIXME
'title' => $channel->title,
'description' => $channel->description,
'icon' => $matches[1],
+ 'videotype' => 'metacafe',
);
}