'name', 'value' => $vars['entity']->name)); ?>
0) {
foreach ($profile_fields as $shortname => $valtype) {
$metadata = get_metadata_byname($vars['entity']->guid, $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(
'internalname' => "accesslevel[$shortname]",
'value' => $access_id,
);
echo elgg_view('input/access', $params);
?>
'guid', 'value' => $vars['entity']->guid));
echo elgg_view('input/submit', array('value' => elgg_echo('save')));
?>