function rooms_unit_type_create in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Creates a room object.
Parameters
array $values: The properties for the new unit type.
1 call to rooms_unit_type_create()
- FeatureContext::createUnitTypes in test/
features/ bootstrap/ FeatureContext.php - @Given /^unit types:$/
File
- modules/
rooms_unit/ rooms_unit.module, line 482 - 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_create($values = array()) {
return entity_get_controller('rooms_unit_type')
->create($values);
}