Active
Project:
Computed Field
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2012 at 08:39 UTC
Updated:
12 Mar 2012 at 08:39 UTC
Jump to comment: Most recent
Comments
Comment #1
Rhodungeon commentedI have the same issue... How can I exclude empty values from the count in Drupal 7?
I've entered this code
$entity_field[0]['value'] = count(field_get_items($entity_type, $entity, 'field_sostanze_con_stesso_noael'));But it gives me value "1" even if the field is empty.
I can't find a solution working for Drupal 7.
I would appreciate a little help.
Thanks!
Comment #2
apoc1 commentedI know this is old, but I have the same problem. What are we doing wrong here?