aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/videolist.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/videolist.php b/lib/videolist.php
index 2dfc7d8fc..96a2c6335 100644
--- a/lib/videolist.php
+++ b/lib/videolist.php
@@ -6,6 +6,10 @@ foreach(explode(', ', VIDEOLIST_SUPPORTED_PLATFORMS) as $videotype){
include(elgg_get_plugins_path()."videolist/lib/$videotype.php");
}
+/**
+ * @param string $url
+ * @return array
+ */
function videolist_parseurl($url){
foreach(explode(', ', VIDEOLIST_SUPPORTED_PLATFORMS) as $videotype){
if (is_callable("videolist_parseurl_$videotype")){
@@ -17,6 +21,10 @@ function videolist_parseurl($url){
return array();
}
+/**
+ * @param array $parsed
+ * @return array
+ */
function videolist_get_data($parsed) {
$videotype = $parsed['videotype'];
$video_id = $parsed['video_id'];