aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'start.php')
-rw-r--r--start.php33
1 files changed, 5 insertions, 28 deletions
diff --git a/start.php b/start.php
index 77bf0a7bc..d6a5ee8b1 100644
--- a/start.php
+++ b/start.php
@@ -34,6 +34,11 @@ function videolist_init() {
'tags' => 'tags',
'access_id' => 'access',
));
+
+ elgg_set_config('videolist_dimensions', array(
+ 'width' => 600,
+ 'height' => 400,
+ ));
// extend group main page
elgg_extend_view('groups/tool_latest', 'videolist/group_module');
@@ -289,34 +294,6 @@ function videolist_icon_url_override($hook, $type, $returnvalue, $params) {
}
/**
- * @param ElggObject $videolist_item
- * @return array
- */
-function videolist_get_video_dimensions(ElggObject $videolist_item) {
- $dimensions = array(
- 'width' => 600,
- 'height' => 400,
- );
- $params['entity'] = $videolist_item;
- $params['videotype'] = $videolist_item->videotype;
- $dimensions = elgg_trigger_plugin_hook(
- 'videolist:setdimensions',
- $params['videotype'],
- $params,
- $dimensions);
- if (! is_array($dimensions)) {
- $dimensions = array();
- }
- if (empty($dimensions['width']) || ! is_numeric($dimensions['width'])) {
- $dimensions['width'] = 600;
- }
- if (empty($dimensions['height']) || ! is_numeric($dimensions['height'])) {
- $dimensions['height'] = 400;
- }
- return $dimensions;
-}
-
-/**
* Prepend HTTP scheme if missing
* @param string $hook
* @param string $type