Jump to content

Build groups chooser


Heosforo

Recommended Posts

Hello,

Use Other/Manual type

and next code

<?php

return new \IPS\Helpers\Form\Select(
	"core_theme_setting_title_{$row['sc_id']}",
	$value === '*' ? '*' : explode(',', $value),
	false,
	array(
		'options' => array_combine(array_keys(\IPS\Member\Group::groups()), array_map(function($_group) { return (string) $_group; }, \IPS\Member\Group::groups())),
		'multiple' => true,
		'parse' => 'normal',
		'unlimited' => '*',
		'unlimitedLang' => 'all'
	),
	null,
	null,
	null,
	'theme_setting_' . $row['sc_key']
);
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...