Elgg  Version master
unvalidated.php
Go to the documentation of this file.
1 <?php
2 
3 echo elgg_call(ELGG_SHOW_DISABLED_ENTITIES, function() {
4  $query = get_input('q');
5  $getter = $query ? 'elgg_search' : 'elgg_get_entities';
6 
7  return elgg_list_entities([
8  'type' => 'user',
9  'metadata_name_value_pairs' => [
10  'validated' => 0,
11  ],
12  'item_view' => 'admin/users/unvalidated/user',
13  'list_class' => 'admin-users-unvalidated elgg-list-distinct',
14  'query' => $query,
15  ], $getter);
16 });
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
Definition: elgglib.php:304
get_input(string $variable, $default=null, bool $filter_result=true)
Parameter input functions.
Definition: input.php:20
const ELGG_SHOW_DISABLED_ENTITIES
Definition: constants.php:123
$getter
elgg_list_entities(array $options=[], callable $getter=null, callable $viewer=null)
Returns a string of rendered entities.
Definition: entities.php:551
$query