translation = $translation; $item->shortname = $listitem; $item->name = "admin_defined_profile_{$listitem}"; $item->type = get_plugin_setting("admin_defined_profile_type_{$listitem}", 'profile'); $items[] = $item; } } } $listing = elgg_view('profile/editdefaultprofileitems',array('items' => $items, 'fieldlist' => $fieldlist)); $resetlisting = elgg_view('input/form', array ( 'body' => elgg_view('input/submit', array('value' => elgg_echo('profile:resetdefault'), 'class' => 'action-button disabled')), 'action' => 'action/profile/editdefault/reset' ) ); $body = <<<__HTML $title $form $listing
$resetlisting
__HTML; echo $body;