protected function deleteItem(array $item, array $data, array $input) { XenForo_Model_Log::logModeratorAction($input['content_type'], $data, 'portal_remove'); SimplePortal_Helper_Content::demote($item['content_type'], $item['content_id']); $redirectLink = XenForo_Link::buildPublicLink('portal/manage-items'); return $this->responseRedirect(XenForo_ControllerResponse_Redirect::SUCCESS, $redirectLink); }
protected function _deletePortalItem() { $threadId = $this->get('thread_id'); SimplePortal_Helper_Content::demote('thread', $threadId); }