Elgg  Version 4.3
default_access.php File Reference

Go to the source code of this file.


if(!elgg_get_config('allow_user_default_access')) $user = elgg_extract('entity', $vars, elgg_get_page_owner_entity())
 Provide a way of setting your default access. More...
if(!$user instanceof ElggUser$default_access = $user->getPrivateSetting('elgg_default_access')
if($default_access===null) $title = elgg_echo('default_access:settings')

Variable Documentation

Initial value:
'#type' => 'access',
'#label' => elgg_echo('default_access:label'),
'name' => 'default_access',
'value' => $default_access,
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1143
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
if(!$user instanceof ElggUser) $default_access

Definition at line 23 of file default_access.php.

if (!$user instanceof ElggUser) $default_access = $user->getPrivateSetting('elgg_default_access')

Definition at line 17 of file default_access.php.

if ($default_access===null) $title = elgg_echo('default_access:settings')

Definition at line 22 of file default_access.php.

if (!elgg_get_config('allow_user_default_access')) $user = elgg_extract('entity', $vars, elgg_get_page_owner_entity())

Provide a way of setting your default access.

$vars['entity'] the user to set settings for

Definition at line 12 of file default_access.php.