We recently implemented uc_hotel for a client that, under some circumstances, required more than the default maximum (8) of adults for an "accommodation unit".
I've attached a patch for hotel_booking.module and hotel_booking.admin.inc
This patch uses a Drupal variable 'hotel_booking_adults_max_count' to store the maximum value (default is 8) and then uses this value to generate the "Number of Adults" selector
| Comment | File | Size | Author |
|---|---|---|---|
| uc_hotel_4.0A1.patch | 2.59 KB | alansch |
Comments
Comment #1
larowlanI think this only belongs in the admin settings page, not the block settings. It impacts both the block search form and the page search form. Having it in both might lead the admin to believe they can change the two independently. Also I think 'Enter maximum...' would be more appropriate.
This not needed if admin option goes into the admin pages.
We need some validation code to ensure they've entered a valid number or the range function will error out.
Powered by Dreditor.