function rooms_unit_type_load in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Menu argument loader; Load a unit type by string.
Parameters
$type: The machine-readable name of a unit type to load.
bool $reset: A boolean indicating whether the internal cache should be reset.
Return value
array|false A unit type array or FALSE if $type does not exist.
14 calls to rooms_unit_type_load()
- book_units_per_type_form in modules/
rooms_booking_manager/ rooms_booking_manager.module - Book units per type booking form callback.
- RoomsUnitController::create in modules/
rooms_unit/ rooms_unit.module - Creates a bookable unit.
- 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_enquiry_page_form in modules/
rooms_booking_manager/ rooms_booking_manager.module - Enquiry search page form.
File
- modules/
rooms_unit/ rooms_unit.module, line 395 - Manage units - Units are things that can be booked on a nightly basis (e.g. rooms - but also villas bungalows, etc).
Code
function rooms_unit_type_load($type, $reset = FALSE) {
return rooms_unit_get_types($type, $reset);
}