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 ?>">
43 <
input type=
"checkbox" name=
"match_on" value=
"true" />
46 <
ul class=
"elgg-user-picker-list">
53 'input_name' =>
$vars[
'name'],
61 require([
'elgg/UserPicker'],
function (UserPicker) {
62 UserPicker.setup(
'.elgg-user-picker[data-name="<?php echo $name ?>"]');
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
$guid
Removes an admin notice.
elgg echo
Translates a string.
elgg require
Throw an error if the required package isn't present.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg table input[type=checkbox]
if(empty($vars['name'])) $name
get_entity($guid)
Loads and returns an entity object from a guid.