1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Closed Suggestions' started by Jaxel, Jan 21, 2011.

  1. Jaxel

    Jaxel Well-Known Member

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

    However, to do the same for ProfilePosts, I must instead use the following:
    $dw = XenForo_DataWriter::create('XenForo_DataWriter_DiscussionMessage_ProfilePost');
    Sure... still simple... but I'm a fan of uniformity.
  2. Mike

    Mike XenForo Developer Staff Member

    More of a suggestion than anything else. :)

Share This Page