Elgg  Version 3.0
Namespaces | Variables
default_access.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Configuration exception.
 

Variables

if(!elgg_get_config('allow_user_default_access')) $user = elgg_get_page_owner_entity()
 
if(!$user instanceof ElggUser$default_access = $user->getPrivateSetting('elgg_default_access')
 
if($default_access===null) $title = elgg_echo('default_access:settings')
 
 $content
 

Variable Documentation

$content
Initial value:
'#type' => 'access',
'name' => 'default_access',
'value' => $default_access,
'#label' => elgg_echo('default_access:label'),
])
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1395
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
if(!$user instanceof ElggUser) $default_access

Definition at line 24 of file default_access.php.

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

Definition at line 18 of file default_access.php.

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

Definition at line 23 of file default_access.php.

Definition at line 12 of file default_access.php.