20 if (empty(
$vars[
'name'])) {
21 $vars[
'name'] =
'members';
24 $name = htmlspecialchars(
$name, ENT_QUOTES,
'UTF-8');
29 if (!empty(
$vars[
'value'])) {
41 <
div class=
"elgg-user-picker" data-limit=
"<?php echo $limit ?>" data-
name=
"<?php echo $name ?>" data-handler=
"<?php echo $handler ?>">
44 <?php echo
elgg_view(
'input/hidden', array(
'name' =>
$vars[
'name'])); ?>
46 <
ul class=
"elgg-user-picker-list">
51 echo
elgg_view(
'input/userpicker/item', array(
53 'input_name' =>
$vars[
'name'],
61 require([
'elgg/UserPicker'],
function (UserPicker) {
62 UserPicker.setup(
'.elgg-user-picker[data-name="<?php echo $name ?>"]');
elgg table input[type=checkbox]
$guid
Removes an admin notice.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
get_entity($guid)
Loads and returns an entity object from a guid.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype='')
Return a parsed view.
if(empty($vars['name'])) $name