You are here

function range_content_is_empty in Range 6

Implementation of hook_content_is_empty().

File

./range.module, line 267
Defines numeric fields within a range of possible values and displays them colored accordingly..

Code

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