Robust
Well-known member
I want an option in the ACP to list all forums in a multiple selection (ctrl to select multiple) menu. Previously I've just asked the user for forum IDs, but I'm trying to do a more user friendly approach.
I have this callback that returns an array, but that isn't really going to work. I need a select menu from the options.
To get a list of forums that should do it, but how do I get it into the actual menu in the ACP options?
Edit: Think I got it
I have this callback that returns an array, but that isn't really going to work. I need a select menu from the options.
Code:
public static function getForums()
{
$forumModel = XenForo_Model::create('XenForo_Model_Forum');
return $forumModel->getForums();
}
To get a list of forums that should do it, but how do I get it into the actual menu in the ACP options?
Edit: Think I got it
Last edited: