Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
for example...
a user selects a double room for 2 adults for 3 nights.
there are 2 addon products for this type of room: (1) Breakfast (2) Breakfast and Dinner.
how can we REQUIRE that the user selects at least 1 of these 2 addon products to go with their room? (so they have to choose
apologies if this is obvious.... :) Ive read the documentation but cant find anything... would appreciate some help!
Comments
Comment #1
larowlanHi
The addons upgrade module is not at a point where this can be done but it is on my to do list.
Comment #2
mttjn CreditAttribution: mttjn commentedim happy to get into the code...
can you outline for me what would need to change/be added? and i can see if i can come up with something...
thanks!
Comment #3
larowlanThe code for the add-ons modules does not use the forms api to generate the select fields. So the form generating function needs to be rewritten and then a theme function needs to be written to output the form as a table. You can look at how the calendars stuff is done if you're interested. You build the form items as per standard FAPI and then call a theme function to render them in table. In core the function user_admin_account is a good example of how to generate a form inside a table (and it's theme functions). This is how the list at admin/user/user is generated. This is on my to-do list but since you're offering ;-)
Comment #4
apadernoI am closing this issue, as Drupal 6 is now not supported.