function flickrfield_content_is_empty in Flickr 6
Implements hook_content_is_empty().
File
- field/
flickrfield.module, line 218 - Defines a Flickr field type.
Code
function flickrfield_content_is_empty($item, $field) {
if ($field['type'] == 'flickrfield') {
return empty($item['id']) && empty($item['url']);
}
elseif ($field['type'] == 'flickrfield_photoset') {
return empty($item['flickrid']);
}
}