function units_field_field_is_empty in Units of Measurement 7.2
Implements hook_field_is_empty().
File
- units_field/
units_field.module, line 123 - Provide field type for storing measured values.
Code
function units_field_field_is_empty($item, $field) {
switch ($field['type']) {
case 'units_value':
return !isset($item['expression']);
break;
}
}