29 'metadata_name' => $shortname,
40 $access_id = $md->access_id;
59 $id =
"profile-$shortname";
65 $access_input =
elgg_view(
'input/access', [
66 'name' =>
"accesslevel[$shortname]",
67 'value' => $access_id,
71 'input' =>
$input . $access_input,
72 'label' =>
elgg_view(
'elements/forms/label', [
73 'label' =>
elgg_echo(
"profile:$shortname"),
86 '#class' =>
'elgg-foot',
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
$id
Edit a custom profile field.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
if(!$owner||!($owner instanceof ElggUser)||!$owner->canEdit()) $input
if(!is_array($accesslevel)) $profile_fields
elgg echo
Translates a string.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.