function text_field_is_empty
Implements hook_field_is_empty().
File
-
modules/
field/ modules/ text/ text.module, line 171
Code
function text_field_is_empty($item, $field) {
if (!isset($item['value']) || $item['value'] === '') {
return !isset($item['summary']) || $item['summary'] === '';
}
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.