function rooms_field_is_empty in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Implements hook_field_is_empty().
File
- ./
rooms.module, line 613 - Provides basic underlying functionality and configuration options used by all Rooms modules
Code
function rooms_field_is_empty($item, $field) {
return empty($item['name']) || empty($item['quantity']) || !(is_numeric($item['quantity']) && is_integer((int) $item['quantity'])) || empty($item['value']) || !is_numeric($item['value']) || empty($item['operation']) || !in_array($item['operation'], array_keys(rooms_price_options_options()));
}