You are here

function phonefield_field_is_empty in Phone Field 7

Implements hook_field_is_empty().

File

./phonefield.module, line 169
Hooks for a module that defines a simple phone number field type.

Code

function phonefield_field_is_empty($item, $field) {
  return empty($item['linklabel']) && empty($item['phonenumber']);
}