Elgg  Version 6.1
group.php
Go to the documentation of this file.
1 <?php
9 $options = (array) elgg_extract('options', $vars);
10 $entity = elgg_extract('entity', $vars);
11 if (!$entity instanceof \ElggGroup) {
12  return;
13 }
14 
16  'container_guid' => $entity->guid,
17  'preload_containers' => false,
18 ];
19 
20 $vars['options'] = array_merge($options, $owner_options);
21 
22 echo elgg_view('trash/listing/all', $vars);
$options
List all the deleted entities in the given group.
Definition: group.php:9
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:256
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$entity
Definition: group.php:10
if(!$entity instanceof\ElggGroup) $owner_options
Definition: group.php:15
if(!$entity instanceof\ElggGroup) $vars['options']
Definition: group.php:20