isAdmin()) && ($vars['show_admin'])) { $admin_option = true; } $form_body = "
" . elgg_view('input/text' , array('internalname' => 'name')) . "
" . elgg_view('input/text' , array('internalname' => 'username')) . "
" . elgg_view('input/text' , array('internalname' => 'email')) . "
" . elgg_view('input/password' , array('internalname' => 'password')) . "
" . elgg_view('input/password' , array('internalname' => 'password2')) . "
"; if ($admin_option) { $form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option')))); $form_body .= '
'; } $form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "
"; ?>