original_string: public function ClearCommentSelections($DiscussionID = '', $TransientKey = '') {
        $Session = Gdn::Session();
        if ($Session->ValidateTransientKey($TransientKey)) {
           $CheckedComments = Gdn::UserModel()->GetAttribute($Session->User->UserID, 'CheckedComments', array());
           unset($CheckedComments[$DiscussionID]);
           Gdn::UserModel()->SaveAttribute($Session->UserID, 'CheckedComments', $CheckedComments);
        }
  
        Redirect(GetIncomingValue('Target', '/discussions'));
     }
code: public function ClearCommentSelections($DiscussionID = '', $TransientKey = '') {
        $Session = Gdn::Session();
        if ($Session->ValidateTransientKey($TransientKey)) {
           $CheckedComments = Gdn::UserModel()->GetAttribute($Session->User->UserID, 'CheckedComments', array());
           unset($CheckedComments[$DiscussionID]);
           Gdn::UserModel()->SaveAttribute($Session->UserID, 'CheckedComments', $CheckedComments);
        }
  
        Redirect(GetIncomingValue('Target', '/discussions'));
     }
code_tokens: public function ClearCommentSelections ( $ DiscussionID = '' , $ TransientKey = '' ) { $ Session = Gdn :: Session ( ) ; if ( $ Session -> ValidateTransientKey ( $ TransientKey ) ) { $ CheckedComments = Gdn :: UserModel ( ) -> GetAttribute ( $ Session -> User -> UserID , 'CheckedComments' , array ( ) ) ; unset ( $ CheckedComments [ $ DiscussionID ] ) ; Gdn :: UserModel ( ) -> SaveAttribute ( $ Session -> UserID , 'CheckedComments' , $ CheckedComments ) ; } Redirect ( GetIncomingValue ( 'Target' , '/discussions' ) ) ; }
docstring: Remove all comments checked for administration from the user's attributes.
docstring_tokens: Remove all comments checked for administration from the user s attributes .