20 if (isset(
$vars[
'options_values'])) {
 
   21     if (!is_array(
$vars[
'options_values']) || empty(
$vars[
'options_values'])) {
 
   33     'entity_type' => 
null,
 
   34     'entity_subtype' => 
null,
 
   35     'container_guid' => 
null,
 
   63     } 
else if (empty(
$vars[
'options_values']) || !is_array(
$vars[
'options_values'])) {
 
   70         $vars[
'value'] = $options_values_ids[0];
 
   77 if (!isset(
$vars[
'options_values'])) {
 
   81 if (!isset(
$vars[
'disabled'])) {
 
   82     $vars[
'disabled'] = 
false;
 
const ACCESS_DEFAULT
Controls access levels on \ElggEntity entities, metadata, and annotations.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key='class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_get_default_access(?\ElggUser $user=null, array $input_params=[])
Gets the default access permission.
elgg_get_readable_access_level(int $entity_access_id)
Return the name of an ACCESS_* constant or an access collection, but only if the logged in user has w...
elgg_get_write_access_array(int $user_guid=0, bool $flush=false, array $input_params=[])
Returns an array of access permissions that the user is allowed to save content with.
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
if($container instanceof ElggGroup && $container->guid !=elgg_get_page_owner_guid()) $key