Elgg  Version 2.3
site_access.php
Go to the documentation of this file.
1 <?php
6 // new user registration
8  '#type' => 'checkbox',
9  'label' => elgg_echo('installation:registration:label'),
10  '#help' => elgg_echo('installation:registration:description'),
11  'name' => 'allow_registration',
12  'checked' => (bool)elgg_get_config('allow_registration'),
13 ]);
14 
15 // walled garden
17  '#type' => 'checkbox',
18  'label' => elgg_echo('installation:walled_garden:label'),
19  '#help' => elgg_echo('installation:walled_garden:description'),
20  'name' => 'walled_garden',
21  'checked' => (bool)elgg_get_config('walled_garden'),
22 ]);
23 
24 echo elgg_view_module('inline', elgg_echo('admin:legend:site_access'), $body, ['id' => 'elgg-settings-advanced-site-access']);
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1424
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:48
$body
Advanced site settings, site access section.
Definition: site_access.php:7
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition: views.php:1250