\XF\Option\UserGroup
class. Looks like I can use the renderSelect
function. But not sure how to reference it in the options page here. Does it have to be called in the validation callback? And whatever is returned from that will be used to draw the the select tag?public function fetchUserGroups()
{
$group = $this->repository('XF:UserGroup');
echo '<pre>';
print_r($group->getUserGroupOptionsData(false));
echo '</pre>';
}
Array
(
[3] => Array
(
[value] => 3
[label] => Administrative
)
[4] => Array
(
[value] => 4
[label] => Moderating
)
[2] => Array
(
[value] => 2
[label] => Registered
)
[1] => Array
(
[value] => 1
[label] => Unregistered / Unconfirmed
)
)
*
, I assume, indicates ALL
. But what can be put there apart from that.We use essential cookies to make this site work, and optional cookies to enhance your experience.