function EMail_AddFields(&$comment) { $comment['title'] = $this->email_title; $comment['article_type'] = $this->email_article_type; $itemid = $comment['itemid']; $item = $this->GetItem($itemid); $comment['article'] = $item[$this->field_title]; $link = FST_Helper::GetBaseURL() . FSTRoute::x(str_replace("{id}", $itemid, $this->article_link)); $comment['linkart'] = $link; }