Elgg  Version 2.3
Namespaces | Variables
default_access.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

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

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:1424
elgg_echo($message_key, $args=array(), $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.