You are here

function mvf_content_is_empty in Measured Value Field 6

Implementation of hook_content_is_empty().

File

./mvf.module, line 162
Measured Value Field module.

Code

function mvf_content_is_empty($item, $field) {
  if ($item['value'] == '') {
    return TRUE;
  }
  elseif ($field['tovalue'] == 'required' && $item['value2'] == '') {
    return TRUE;
  }
  return FALSE;
}