aboutsummaryrefslogtreecommitdiff
path: root/pages/videolist
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-11-06 01:11:57 +0100
committerSem <sembrestels@riseup.net>2011-11-06 01:11:57 +0100
commitd7ac68a7db932618c051442210614b9b6484c702 (patch)
tree51a9df735007b5b50e900da61163255072102ff9 /pages/videolist
parentecf03771557e24e86a982e5f79ebcb84d8d54883 (diff)
downloadelgg-d7ac68a7db932618c051442210614b9b6484c702.tar.gz
elgg-d7ac68a7db932618c051442210614b9b6484c702.tar.bz2
Add/edit video form.
Diffstat (limited to 'pages/videolist')
-rw-r--r--pages/videolist/add.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/pages/videolist/add.php b/pages/videolist/add.php
index 0ae067391..6dd6a2f1f 100644
--- a/pages/videolist/add.php
+++ b/pages/videolist/add.php
@@ -14,17 +14,21 @@ $title = elgg_echo('videolist:add');
// set up breadcrumbs
elgg_push_breadcrumb(elgg_echo('videolist'), "file/all");
-if (elgg_instanceof($owner, 'user')) {
- elgg_push_breadcrumb($owner->name, "videolist/owner/$owner->username");
+if (elgg_instanceof($page_owner, 'user')) {
+ elgg_push_breadcrumb($page_owner->name, "videolist/owner/$page_owner->username");
} else {
- elgg_push_breadcrumb($owner->name, "videolist/group/$owner->guid/all");
+ elgg_push_breadcrumb($page_owner->name, "videolist/group/$page_owner->guid/all");
}
elgg_push_breadcrumb($title);
// create form
$form_vars = array();
-$body_vars = array();
-$content = elgg_view_form('videolist/add', $form_vars, $body_vars);
+$body_vars = array(
+ 'container_guid' => $page_owner->guid,
+ 'access_id' => elgg_instanceof($page_owner, 'user') ? ACCESS_DEFAULT : $page_owner->group_acl,
+);
+
+$content = elgg_view_form('videolist/edit', $form_vars, $body_vars);
$body = elgg_view_layout('content', array(
'content' => $content,