Elgg  Version master
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->getMetadata('elgg_default_access') ?? elgg_get_config('default_access')
 $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:1112
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
if(!$user instanceof ElggUser) $default_access

Definition at line 20 of file default_access.php.

if (!$user instanceof ElggUser) $default_access = $user->getMetadata('elgg_default_access') ?? elgg_get_config('default_access')

Definition at line 17 of file default_access.php.

$title = elgg_echo('default_access:settings')

Definition at line 19 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.