You are here

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

Returns the available price options for booking_unit options field.

4 calls to rooms_price_options_options()
rooms_field_is_empty in ./rooms.module
Implements hook_field_is_empty().
rooms_field_widget_form in ./rooms.module
Implements hook_field_widget_form().
rooms_pricing_update_form in modules/rooms_pricing/rooms_pricing.module
Form to manage the room units pricing.
update_unit_pricing_form in modules/rooms_pricing/rooms_pricing.module
A basic form that allows us to update the state of the calendar.

File

./rooms.module, line 790
Provides basic underlying functionality and configuration options used by all Rooms modules

Code

function rooms_price_options_options() {
  return array(
    ROOMS_ADD => t('Add to price'),
    ROOMS_ADD_DAILY => t('Add to price per night'),
    ROOMS_SUB => t('Subtract from price'),
    ROOMS_SUB_DAILY => t('Subtract from price per night'),
    ROOMS_REPLACE => t('Replace price'),
    ROOMS_INCREASE => t('Increase price by % amount'),
    ROOMS_DECREASE => t('Decrease price by % amount'),
  );
}