Elgg  Version 1.9
default_access.php
Go to the documentation of this file.
1 <?php
8 if (elgg_get_config('allow_user_default_access')) {
10 
11  if ($user) {
12  $default_access = $user->getPrivateSetting('elgg_default_access');
13  if ($default_access === null) {
14  $default_access = elgg_get_config('default_access');
15  }
16 
17  $title = elgg_echo('default_access:settings');
18  $content = elgg_echo('default_access:label') . ': ';
19  $content .= elgg_view('input/access', array(
20  'name' => 'default_access',
21  'value' => $default_access,
22  ));
23 
25  }
26 }
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition: views.php:1197
$title
Definition: save.php:24
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$user
Definition: ban.php:13
elgg echo
Translates a string.
Definition: languages.js:43
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:53
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
$content
Set robots.txt action.
Definition: set_robots.php:6