wrapper itself */ $admin_option = false; if ((elgg_get_logged_in_user_entity()->isAdmin()) && ($vars['show_admin'])) { $admin_option = true; } $form_body = "


" . elgg_view('input/text' , array('internalname' => 'name')) . "

"; $form_body .= "


" . elgg_view('input/text' , array('internalname' => 'username')) . "

"; $form_body .= "


" . elgg_view('input/text' , array('internalname' => 'email')) . "

"; $form_body .= "


" . elgg_view('input/password' , array('internalname' => 'password')) . "

"; $form_body .= "


" . elgg_view('input/password' , array('internalname' => 'password2')) . "

"; $form_body .= "

"; 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'))) . "

"; ?>

"action/useradd", 'body' => $form_body, )); ?>