--- F:/uc_hotel_4.0A1/hotel_booking/hotel_booking.module	Sat Jun 11 17:53:58 2011
+++ F:/uc_hotel_patched/hotel_booking/hotel_booking.module	Tue Sep 20 16:05:31 2011
@@ -404,6 +404,14 @@
         '#description'   => t("Select the room type with the best rate to display a link to it in the search block, if no room type is selected, the link will not be displayed."),
       );
 
+/* added hotel_booking_adults_max_count */
+      $form['search_adults_max_count'] = array(
+        '#type'          => 'textfield',
+        '#title'         => t('Maximum Number of Adults'),
+        '#default_value' => variable_get('hotel_booking_adults_max_count', '8'),
+        '#description'   => t('Select maximum number of adults to allow for adults selection option in search block.'),
+      );
+
       $form['search_children'] = array(
         '#type'          => 'select',
         '#title'         => t('Children Selection'),
@@ -424,6 +432,7 @@
 
     case 'save':
       variable_set('hotel_booking_best_rate', $edit['best_rate_link']);
+      variable_set('hotel_booking_adults_max_count', $edit['search_adults_max_count']);
       variable_set('hotel_booking_block_children', $edit['search_children']);
       variable_set('hotel_booking_block_smoking', $edit['search_smoking']);
       break;
@@ -651,7 +660,7 @@
   $form['search']['adults'] = array(
     '#type' => 'select',
     '#title' => t('Adults'),
-    '#options' => drupal_map_assoc(range(1, 8)),
+    '#options' => drupal_map_assoc(range(1, variable_get('hotel_booking_adults_max_count', '8'))),
     '#default_value' => $defaults['adults'],
   );
   if (variable_get('hotel_booking_block_children', 1) || $page) {
--- F:/uc_hotel_4.0A1/hotel_booking/hotel_booking.admin.inc	Sat Jun 11 17:53:58 2011
+++ F:/uc_hotel_patched/hotel_booking/hotel_booking.admin.inc	Tue Sep 20 16:04:56 2011
@@ -146,6 +146,14 @@
     '#description'   => t("Select the room type with the best rate to display a link to it in the search block, if no room type is selected, the link will not be displayed."),
   );
 
+/* added hotel_booking_adults_max_count */
+  $form['block']['hotel_booking_adults_max_count'] = array(
+    '#type'          => 'textfield',
+    '#title'         => t('Maximum Number of Adults'),
+    '#default_value' => variable_get('hotel_booking_adults_max_count', '8'),
+    '#description'   => t('Select maximum number of adults to allow for adults selection option in search block.'),
+  );
+
   $form['block']['hotel_booking_block_children'] = array(
     '#type'          => 'select',
     '#title'         => t('Children Selection'),
