You are here

function rooms_assoc_range in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Returns a range array keyed by value.

Parameters

int $start: First value of the sequence.

int $end: The sequence is ended upon reaching the end value.

Return value

array An array of elements from start to end, inclusive keyed by values.

5 calls to rooms_assoc_range()
rooms_booking_availability_search_form_builder in modules/rooms_booking_manager/rooms_booking_manager.availability_search.inc
Form callback for rooms_booking_availability_search_form_builder.
rooms_booking_edit_form in modules/rooms_booking/rooms_booking.admin.inc
Form callback: create or edit a booking.
rooms_booking_manager_alter_rooms_booking_settings in modules/rooms_booking_manager/rooms_booking_manager.module
Alters for the 'rooms_booking_settings' form.
rooms_booking_manager_deposit_config_form in modules/rooms_booking_manager/rooms_booking_manager.module
Form snippet to configure deposit configuration form.
rooms_field_widget_form in ./rooms.module
Implements hook_field_widget_form().

File

./rooms.module, line 1134
Provides basic underlying functionality and configuration options used by all Rooms modules

Code

function rooms_assoc_range($start, $end) {
  return drupal_map_assoc(rooms_range($start, $end));
}