function sheetnode_content_is_empty in Sheetnode 6
Same name and namespace in other branches
- 5 sheetnode.module \sheetnode_content_is_empty()
Implementation of hook_content_is_empty().
File
- ./
sheetnode.module, line 679
Code
function sheetnode_content_is_empty($item, $field) {
require_once drupal_get_path('module', 'sheetnode') . '/socialcalc.inc';
$sc = socialcalc_parse($item['value']);
return empty($sc['sheet']['cells']);
}