function mathfield_field_is_empty in Math Field 7
Implements hook_field_is_empty().
File
- ./
mathfield.module, line 123 - Adds a dynamic math expression field.
Code
function mathfield_field_is_empty($item, $field) {
return empty($item['value']) && (string) $item['value'] !== '0';
}