You are here

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

Saves a unit to the database.

Parameters

RoomsUnit $unit: The Unit object.

1 call to rooms_unit_save()
MigrateDestinationRoomsUnit::import in modules/rooms_unit/rooms_unit.migrate.inc
Imports a single rooms unit.
1 string reference to 'rooms_unit_save'
MigrateDestinationRoomsUnit::import in modules/rooms_unit/rooms_unit.migrate.inc
Imports a single rooms unit.

File

modules/rooms_unit/rooms_unit.module, line 472
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_save(RoomsUnit $unit) {
  return $unit
    ->save();
}