function url_field_is_empty in URL field 8
Same name and namespace in other branches
- 7 url.module \url_field_is_empty()
Implements hook_field_is_empty().
File
- ./
url.module, line 81 - Provides a URL field type that stores external links with optional titles.
Code
function url_field_is_empty($item, $field) {
return !isset($item['value']) || $item['value'] === '';
}