You are here

function soundcloudfield_field_is_empty in SoundCloud field 7

Implements hook_field_is_empty().

Pseudo-hook.

File

./soundcloudfield.module, line 64
@author Attila Fekete - http://drupal.org/user/762986

Code

function soundcloudfield_field_is_empty($item, $field) {
  if ($field['type'] == 'soundcloud') {
    if (empty($item['url'])) {
      return TRUE;
    }
  }
  return FALSE;
}