aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-01-18 18:41:09 -0500
committerCash Costello <cash.costello@gmail.com>2012-01-18 18:41:09 -0500
commit15511a9ba9311722f4c3c34ca4f404b2061f67dd (patch)
tree94c6b160305807a0904df2391087720353bd20b1 /views
parent34b77f9b8cec3368789f48ad466b9a3de0506fa4 (diff)
parentf942750eacc2a0314d601f666fbff27f2f58ed34 (diff)
downloadelgg-15511a9ba9311722f4c3c34ca4f404b2061f67dd.tar.gz
elgg-15511a9ba9311722f4c3c34ca4f404b2061f67dd.tar.bz2
Merge pull request #145 from sembrestels/default-access
Limited site default access to core access levels.
Diffstat (limited to 'views')
-rw-r--r--views/default/forms/admin/site/update_advanced.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/forms/admin/site/update_advanced.php b/views/default/forms/admin/site/update_advanced.php
index 5155fc415..f79a235b5 100644
--- a/views/default/forms/admin/site/update_advanced.php
+++ b/views/default/forms/admin/site/update_advanced.php
@@ -19,6 +19,12 @@ foreach (array('wwwroot', 'path', 'dataroot') as $field) {
$form_body .= "<div>" . elgg_echo('admin:site:access:warning') . "<br />";
$form_body .= "<label>" . elgg_echo('installation:sitepermissions') . "</label>";
$form_body .= elgg_view('input/access', array(
+ 'options_values' => array(
+ ACCESS_PRIVATE => elgg_echo("PRIVATE"),
+ ACCESS_FRIENDS => elgg_echo("access:friends:label"),
+ ACCESS_LOGGED_IN => elgg_echo("LOGGED_IN"),
+ ACCESS_PUBLIC => elgg_echo("PUBLIC")
+ ),
'name' => 'default_access',
'value' => elgg_get_config('default_access'),
)) . "</div>";
@@ -95,4 +101,4 @@ $form_body .= '<div class="elgg-foot">';
$form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));
$form_body .= '</div>';
-echo $form_body; \ No newline at end of file
+echo $form_body;