Elgg  Version master
grouppicker.php
Go to the documentation of this file.
1 <?php
11 if (!isset($vars['name'])) {
12  $vars['name'] = 'groups';
13 }
14 
15 $vars['match_on'] = elgg_extract('match_on', $vars, 'groups');
16 $vars['class'] = elgg_extract_class($vars, ['elgg-group-picker']);
17 
18 echo elgg_view('input/entitypicker', $vars);
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:254
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
if(!isset($vars['name'])) $vars['match_on']
Elgg group picker.
Definition: grouppicker.php:15
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:277