Jump to content
namhost

How to add multiple checkboxes to a module config page?

Recommended Posts

I'm sure it is possible, because by default any module has what you can see in the attachment. So, I can add a single checkbox like so:

'mymod_maintenance_mode' =>
[
    'FriendlyName' => 'Maintenance Mode',
    'Type' => 'yesno',
    'Description' => 'Tick to temporarily disable all notifications.',
],

But let's say I wanted two checkboxes:

  • Disable Maintenance Mode
  • Disable Backend Access For Non Super Admins 

How would I be able to get multiple checkboxes to appear in the same way WHMS makes it appear for the "Access Control" settings? 

 

multi.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated