'Registration Menu'

@classmethod
def menu_register(cls, **attr):

    if current.auth.is_logged_in():
        return None
    request = current.request
    login_next = URL(args=request.args, vars=request.vars)
    if ((request.controller == 'default') and (request.function == 'user') and ('_next' in request.get_vars)):
        login_next = request.get_vars['_next']
    menu_auth = MM('Register', c='default', f='user', m='register', vars=dict(_next=login_next), **attr)
    return menu_auth
