Generates a group of radio buttons and their associated labels.
Note: The items array passed to this method is an associative array of the values in each radio button keyed by the labels used.
Parameters:
-
The name attribute of all of the input elements in the HTML code.
-
The BASE id of each of the input elements in the HTML code. This will be suffixed by the values in the items array (sanitized with dashes), to ensure that all checkboxes have a meaningful ID.
-
An associative array of the checkbox values, keyed by the labels to be used.
-
The current (checked) value.
-
HTML code to insert before each radio button.
-
HTML code to insert after each radio button.
-
Boolean $disabled = false
Whether the radio buttons should be disabled.