Voting starts in March for the Drupal Association Board election.
I have a cck multi-value field (field_images) and I'm trying to use the Computed Field module to calculate and display a count of images in a view. I know this is probably insanely simple to do, but I'm really not familiar with php and I've been tearing my hair out for two days.
I located the following snippet on the documentation for the Computed Field module:
$node_field['value'] = count($node->field_images);
This works great if the node has one or more images. Nodes without any images still display a value of 1.
I would weep with gratitude if someone can help me figure this out :)