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

larowlan’s picture

Assigned: Unassigned » larowlan
Category: support » feature
Issue tags: +Release blocker

Hi
The addons upgrade module is not at a point where this can be done but it is on my to do list.

mttjn’s picture

im 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!

larowlan’s picture

The 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 ;-)

apaderno’s picture

Version: 6.x-2.0-beta4 » 6.x-2.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, as Drupal 6 is now not supported.