function range_field_is_empty in Range 7
Implements hook_field_is_empty().
File
- ./
range.module, line 247 - Defines range field types.
Code
function range_field_is_empty($item, $field) {
if (empty($item['from']) && (string) $item['from'] !== '0' && empty($item['to']) && (string) $item['to'] !== '0') {
return TRUE;
}
return FALSE;
}