Elgg  Version 3.0
grouppicker.php
Go to the documentation of this file.
1 <?php
11 if (!isset($vars['name'])) {
12  $vars['name'] = 'groups';
13 }
14 
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']);
18 
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:1153
elgg echo
Translates a string.
Definition: languages.js:43
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:1131
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246