You are here

function flickrfield_field_is_empty in Flickr 7

Implements hook_field_is_empty().

File

field/flickrfield.module, line 156
Defines a Flickr field type.

Code

function flickrfield_field_is_empty($item, $field) {
  switch ($field['type']) {
    case 'flickrfield':
      return empty($item['id']);
    case 'flickrfield_photoset':
      return empty($item['flickrid']);
  }
}