applications/vanilla/models/class.draftmodel.php
public function UpdateUser($UserID) {
      // Retrieve a draft count
      $CountDrafts = $this->GetCount($UserID);
      
      // Update CountDrafts column of user table fot this user
      Gdn::UserModel()->SetField($UserID, 'CountDrafts', $CountDrafts);
   }
public function UpdateUser($UserID) {
      // Retrieve a draft count
      $CountDrafts = $this->GetCount($UserID);
      
      // Update CountDrafts column of user table fot this user
      Gdn::UserModel()->SetField($UserID, 'CountDrafts', $CountDrafts);
   }
public function UpdateUser ( $ UserID ) { // Retrieve a draft count $ CountDrafts = $ this -> GetCount ( $ UserID ) ; // Update CountDrafts column of user table fot this user Gdn :: UserModel ( ) -> SetField ( $ UserID , 'CountDrafts' , $ CountDrafts ) ; }
Updates a user's draft count.

@since 2.0.0
@access public

@param int $UserID Unique ID of the user to be updated.
Updates a user s draft count .