So this statement seemed to work in my code:
//Create the forum
$id = db_qid('INSERT INTO
'. $GLOBALS['DBHOST_TBL_PREFIX'] .'forum (
) VALUES (
'. GroupsController::FORUM_CATEGORY .',
'. _esc($group->name) .',
FORUM_CATEGORY is a constant set to the id of an existing category in the forum
The forum appears in the Admin->Forum Management just fine.
It just doesn't appear in the forum index page at all. Not sure why.
[Updated on: Sat, 16 November 2019 22:55]
Report message to a moderator