function number_field_is_empty

Implements hook_field_is_empty().

File

modules/field/modules/number/number.module, line 181

Code

function number_field_is_empty($item, $field) {
    if (empty($item['value']) && (string) $item['value'] !== '0') {
        return TRUE;
    }
    return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.