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']['nid']);)
$names = explode(" ", $account->name);
$entity_field['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!