22 Jul
2008
22 Jul
'08
5:36 a.m.
Hey Dan, On Tue, Jul 22, 2008 at 4:56 AM, Earl Miles <merlin@logrus.com> wrote:
I would recommend setting up a #process so that you can use your own version of expand_radios() -- this will let you set things like the #name and #id of each individual radio option individually. That could allow you to much more easily deal with some of this oddness.
For some examples of a custom #process callback, see the D6 version of the Category module <http://drupal.org/project/category> (currently in Alpha). The category_menu sub-module has two custom overrides of expand_checkboxes(), which are there to add some jQuery to each box in a set of checkboxes (not _exactly_ the same as radios, but pretty close). Cheers, Jaza.