Elgg  Version 4.3
unvalidated.php
Go to the documentation of this file.
1 <?php
2 
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:592
elgg_list_entities(array $options=[], $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
Definition: entities.php:589
const ELGG_SHOW_DISABLED_ENTITIES
Definition: constants.php:148
get_input($variable, $default=null, $filter_result=true)
Parameter input functions.
Definition: input.php:20
$getter
$query
elgg echo
Translates a string.
Definition: deprecated.js:530