In order to make searches through views more effective, I am trying to make a computed field which contains the location information my node(s). I have found a couple of threads discussing how to do this, but it looks like the code they are using is for D6. I'm wondering what the updated version of the location portion of this code would be, since it is not working in its current form.
$entity_field[0]['value'] = $entity->locations[0]['city'];
Any help is greatly appreaciated.
Comments
Comment #1
legolasboClosing support tickets that have been inactive for over a year to clean up the issue queue. Please reopen if this is still an issue.