/** * Merges "posted" info into the topics array, used by the display_Topics template. * This adds the "content.posted" element to the node record. The value is the number of * times the current user has posted in the topic (replies and comments); zero if none. * * @param array Nodes * * @return array Same array of nodes, with the "posted" element added to the "content" sub-array */ public function mergePostedStatusForTopics($nodes) { $user = vB::getCurrentSession()->fetch_userinfo(); $userid = $user['userid']; return $this->library->mergePostedStatusForTopics($nodes, $userid); }