Lack of interest XenForo_Model_ProfilePost->deleteProfilePost function missing...

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Jaxel

Well-known member
Simple... all other content types have their own functions...
Code:
$this->getModelFromCache('XenForo_Model_Thread')->deleteThread($thread['content_id'], 'hard');
Code:
$this->getModelFromCache('XenForo_Model_Post')->deletePost($post['content_id'], 'hard');


However, to do the same for ProfilePosts, I must instead use the following:
Code:
$dw = XenForo_DataWriter::create('XenForo_DataWriter_DiscussionMessage_ProfilePost');
$dw->setExistingData($profile_post['content_id']);
$dw->delete();

Sure... still simple... but I'm a fan of uniformity.
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Top Bottom