user_register_form_pre_render

Versions
mediamosa-21
user_register_form_pre_render($form)

Form pre-render callback to clean up the user_register_form.

If the "account" fieldset is the only element at the top level (apart from the submit button), its borders are hidden for aesthetic reasons.

Code

modules/user/user.module, line 3318

<?php
function user_register_form_pre_render($form) {
  $visible_children = element_get_visible_children($form);
  if (!count(array_diff($visible_children, array('account', 'submit')))) {
    $form['account']['#theme_wrappers'] = array();
  }
  return $form;
}
?>