/** * Add the mention bbcode to the custom bbcodes of bbcode box for posts. * * @param object $event The event object * @return void */ public function custom_bbcodes_display($event) { $num_predefined_bbcodes = $event['num_predefined_bbcodes']; $bbcodes = array('mention' => $this->config['wolfsblvt.mentions.active_bbcode'] ? 'mention' : false, 'mention_text' => $this->config['wolfsblvt.mentions.active_bbcode_text'] ? 'mention=' : false); $this->mentions->add_bbcodes_to_display($bbcodes, $num_predefined_bbcodes); // We have more bbcodes that does not count as a custom bbcode, take the increased number $event['num_predefined_bbcodes'] = $num_predefined_bbcodes; }