By nicolo2 on
Hi!
I want to make a computed field show other reference field data.
I made code.
"field_employee" is node reference field
$account = entity_load($entity->field_employee['und'][0]['nid']);)
$names = explode(" ", $account->name);
$entity_field[0]['value'] = end($names);
I just want to show its name and the other data through computed field.
but it didn't work.
I need help me out!