You are here

function machine_name_field_is_empty in Machine name 7

Same name and namespace in other branches
  1. 7.2 machine_name.module \machine_name_field_is_empty()

Implements hook_field_is_empty().

1 call to machine_name_field_is_empty()
machine_name_field_widget_form in ./machine_name.module
Implements hook_field_widget_form().

File

./machine_name.module, line 100
Defines a machine name field type, relying on Form API's #type 'machine_name'.

Code

function machine_name_field_is_empty($item, $field) {
  return !isset($item['value']) || $item['value'] === '';
}