Elgg  Version 4.3
Go to the documentation of this file.
1 <?php
11 if (!isset($vars['name'])) {
12  $vars['name'] = 'groups';
13 }
15 $vars['show_friends'] = false;
16 $vars['match_on'] = elgg_extract('match_on', $vars, 'groups');
17 $vars['class'] = elgg_extract_class($vars, ['elgg-group-picker']);
19 // @todo don't abuse userpicker, make it into generic entity picker
20 echo elgg_view('input/userpicker', $vars);
if(!isset($vars['name'])) $vars['show_friends']
Elgg group picker.
Definition: grouppicker.php:15
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:569
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:547
elgg echo
Translates a string.
Definition: deprecated.js:530
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179