aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/add.php
diff options
context:
space:
mode:
authorDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 16:07:09 +0000
committerDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 16:07:09 +0000
commita1d056d0bf0a28fc2589995b3eff66d5425dd06d (patch)
tree44e2e6fd80fc43f1b4b7ef9d62b56deac2f03d46 /views/default/forms/add.php
parent413a10665f90bc588b07d3e2a5376fa2f387ba09 (diff)
downloadelgg-a1d056d0bf0a28fc2589995b3eff66d5425dd06d.tar.gz
elgg-a1d056d0bf0a28fc2589995b3eff66d5425dd06d.tar.bz2
videos now work for groups
git-svn-id: http://code.elgg.org@6234 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/forms/add.php')
-rw-r--r--views/default/forms/add.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/forms/add.php b/views/default/forms/add.php
index 765bb9c09..2ee5d9c2e 100644
--- a/views/default/forms/add.php
+++ b/views/default/forms/add.php
@@ -30,6 +30,12 @@ if(page_owner_entity() instanceof ElggGroup){
}else{
$access_id = get_default_access(get_loggedin_user());
}
+//if it is a group, pull out the group access view
+if(page_owner_entity() instanceof ElggGroup){
+ $options = group_access_options(page_owner_entity());
+}else{
+ $options = '';
+}
$title_videourl = get_input('title_videourl');
$Pagecontainer = get_input('page');
$get_addvideourl = get_input('add_videourl');
@@ -149,7 +155,7 @@ $body .= elgg_view('input/tags', array('internalname' => 'videolisttags', 'value
$body .= '</label></p>';
$body .= '<p><label>'.elgg_echo("videolist:title_access").'<br />';
-$body .= elgg_view('input/access',array('internalname'=>'access_id', 'value' => $access_id));
+$body .= elgg_view('input/access',array('internalname'=>'access_id', 'value' => $access_id, 'options' => $options));
$body .= '</label></p>';
$body .= elgg_view('input/submit', array('internalname'=>'submit','value'=>elgg_echo('videolist:submit')));
$body .= '</form>';