Active
Project:
Computed Field
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
4 Apr 2013 at 16:08 UTC
Updated:
16 Jan 2017 at 22:21 UTC
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
Comment #1
colanComment #1.0
colanadded code