diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-21 11:33:29 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-21 11:33:29 +0000 |
commit | f75291273ffb60acc66b02329224044af98953a0 (patch) | |
tree | f02d8d2a383320319cfd1dd90d424c2850186b44 /mod | |
parent | 648b6c5f0bcb55aaef9eaef52a39332f5dae9b5f (diff) | |
download | elgg-f75291273ffb60acc66b02329224044af98953a0.tar.gz elgg-f75291273ffb60acc66b02329224044af98953a0.tar.bz2 |
a simple function which can be used to restrict group access options
git-svn-id: http://code.elgg.org/elgg/trunk@5831 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/start.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php index bca4d1500..9dfe74bf7 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -580,6 +580,17 @@ return $invitations; } + + /** + * Function to use on groups for access. It will house private, loggedin, public, + * and the group itself. This is when you don't want other groups or channels in the access options available + * Returns an array + **/ + + function group_access_options($group){ + $access_array = array(0 => 'private',1 => 'logged in users',2 => 'public',$group->group_acl => 'Group: ' . $group->name ); + return $access_array; + } register_extender_url_handler('group_topicpost_url','annotation', 'group_topic_post'); |