protected function process_revert_to_draft($userid = 0) {
        require_sesskey();

        if (!$userid) {
            $userid = required_param('userid', PARAM_INT);
        }

        return $this->revert_to_draft($userid);
    }
protected function process_revert_to_draft($userid = 0) {
        require_sesskey();

        if (!$userid) {
            $userid = required_param('userid', PARAM_INT);
        }

        return $this->revert_to_draft($userid);
    }
protected function process_revert_to_draft ( $ userid = 0 ) { require_sesskey ( ) ; if ( ! $ userid ) { $ userid = required_param ( 'userid' , PARAM_INT ) ; } return $ this -> revert_to_draft ( $ userid ) ; }
Revert to draft.
Uses url parameter userid if userid not supplied as a parameter.

@param int $userid
@return boolean
Revert to draft . Uses url parameter userid if userid not supplied as a parameter .