function url_field_is_empty in URL field 7
Same name and namespace in other branches
- 8 url.module \url_field_is_empty()
Implements hook_field_is_empty().
File
- ./
url.module, line 79 - 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'] === '';
}