text_field_is_empty
function text_field_is_empty
text_field_is_empty($item, $field)
Implements hook_field_is_empty().
File
- modules/field/modules/text/text.module, line 171
- Defines simple text field types.
Code
function text_field_is_empty($item, $field) { if (!isset($item['value']) || $item['value'] === '') { return !isset($item['summary']) || $item['summary'] === ''; } return FALSE; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!modules!text!text.module/function/text_field_is_empty/7.x