You are here

public function BookingEvent::unlock in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Unlocks the event.

Overrides BookingEventInterface::unlock

File

modules/rooms_availability/includes/rooms_availability.booking_event.inc, line 75
Class BookingEvent

Class

BookingEvent
@file Class BookingEvent

Code

public function unlock() {
  db_delete('rooms_booking_locks')
    ->condition(db_or()
    ->condition('state', $this->id)
    ->condition('state', -$this->id))
    ->execute();
}