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('name' => 'name')) . "
";
$form_body .= "
" . elgg_view('input/text' , array('name' => 'username')) . "
";
$form_body .= "
" . elgg_view('input/text' , array('name' => 'email')) . "
";
$form_body .= "
" . elgg_view('input/password' , array('name' => 'password')) . "
";
$form_body .= "
" . elgg_view('input/password' , array('name' => 'password2')) . "
";
$form_body .= "";
if ($admin_option) {
$form_body .= elgg_view('input/checkboxes', array('name' => "admin", 'options' => array(elgg_echo('admin_option'))));
$form_body .= '
';
}
$form_body .= elgg_view('input/submit', array('name' => 'submit', 'value' => elgg_echo('register'))) . "
";
?>
"action/useradd",
'body' => $form_body,
));
?>