You are here

function sheetnode_field_is_empty in Sheetnode 7.2

Same name and namespace in other branches
  1. 7 sheetnode.module \sheetnode_field_is_empty()

Implements hook_field_is_empty().

File

./sheetnode.module, line 715
Module file for the sheetnode module.

Code

function sheetnode_field_is_empty($item, $field) {
  if (empty($item['value'])) {
    return TRUE;
  }
  module_load_include('inc', 'sheetnode', 'socialcalc');
  $sc = socialcalc_parse($item['value']);
  return empty($sc['sheet']['cells']);
}