'name', 'value' => $vars['entity']->name)); ?>
0) {
foreach ($profile_fields as $shortname => $valtype) {
$metadata = elgg_get_metadata(array(
'guid' => $vars['entity']->guid,
'metadata_name' => $shortname
));
if ($metadata) {
if (is_array($metadata)) {
$value = '';
foreach ($metadata as $md) {
if (!empty($value)) {
$value .= ', ';
}
$value .= $md->value;
$access_id = $md->access_id;
}
} else {
$value = $metadata->value;
$access_id = $metadata->access_id;
}
} else {
$value = '';
$access_id = ACCESS_DEFAULT;
}
?>
$shortname,
'value' => $value,
);
echo elgg_view("input/{$valtype}", $params);
$params = array(
'name' => "accesslevel[$shortname]",
'value' => $access_id,
);
echo elgg_view('input/access', $params);
?>