/**
  * Do registration form
  * 
  * @return boolean
  * @since 1.2
  */
 function do_registration_form()
 {
     //initializing variables
     $user_type = is_user_type();
     $pages = get_registration_pages();
     $status = true;
     //reasons to fail
     if (!$user_type) {
         $status = false;
     }
     if ($status && !isset($pages[$user_type])) {
         $status = false;
     }
     if (!$status) {
         do_redirect(get_bloginfo('url') . '/registration/');
     }
     display_custom_user_fields(null, get_registration_fields($user_type));
     return true;
 }
/**
 * Do registration form
 * 
 * @return boolean
 * @since 1.2
 */
function bum_do_registration_form()
{
    //initializing variables
    $user_type = bum_is_user_type();
    $pages = get_registration_pages();
    $status = true;
    //reasons to fail
    if (!$user_type) {
        $status = false;
    }
    if ($status && !isset($pages[$user_type])) {
        $status = false;
    }
    bum_display_custom_user_fields(null, get_registration_fields($user_type));
    return true;
}