aboutsummaryrefslogtreecommitdiff
path: root/lib/videolist.php
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-04-09 15:06:33 -0400
committerSteve Clay <steve@mrclay.org>2012-04-09 15:06:33 -0400
commit01c44e9002d03f58c9a5271c6256096de3273eb5 (patch)
tree562aa2062ab1576852b021918653f48d1d2ae059 /lib/videolist.php
parentf1a0a4d5aa28753620552df9d5e88bd983d0aca4 (diff)
downloadelgg-01c44e9002d03f58c9a5271c6256096de3273eb5.tar.gz
elgg-01c44e9002d03f58c9a5271c6256096de3273eb5.tar.bz2
More PHPDoc comments and @var declarations to help IDE comprehension
Diffstat (limited to 'lib/videolist.php')
-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'];