/** * Checks whether this feature should be displayed for the given user * in current forum. * By default, this checks the discussions's can_manage function and that * the discussion isn't deleted. * @param mod_forumng $forum Forum object * @param int $groupid Group id * @return bool True if this should display */ public function should_display($forum) { return $forum->can_manage_discussions(); }