I am currently looking to build a banner module that will allow a Magento admin user to upload banners to appear on their home page and then select what store views they want these to appear on as well as setting what customer groups they want the banner to appear for.
I have created a single table model that is managed through the admin area and have the store view selector working correctly but cant work out how I can obtain a list of the websites available customer groups and display them in a multiselect form element to enable the admin to choose which customer group the banner is for when creating or editing a banner item.
Can somebody advise the best way to obtain a list of available customer groups and display these in a multiselect form element?