So far I have:

$tids = $entity->field_taxonomyref;
$i = 0;
foreach($tids as $key => $val) {
$i++;
}
$entity_field[0]['value'] = $i;

But this only returns 1. It's only seeing one value.. how would I loop through all the values?

Comments

colan’s picture

Category: task » support
colan’s picture

Issue summary: View changes

added code