You are here

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

Rules action: deletes expired cart orders based on the provided limit.

1 string reference to 'rooms_booking_expiration_delete_orders'
rooms_booking_rules_action_info_alter in modules/rooms_booking/rooms_booking.module
Implements hook_rules_action_info_alter().

File

modules/rooms_booking/rooms_booking.module, line 562
Manage Bookings - Bookings are tied to a customer profile and possible a Unit ID and Order ID.

Code

function rooms_booking_expiration_delete_orders($limit) {
  module_load_include('inc', 'commerce_cart_expiration', 'commerce_cart_expiration.rules');
  $interval = variable_get('rooms_booking_expiration_time', 1800);
  commerce_cart_expiration_delete_orders($interval, $limit);
}