I'm using Display Suite module to create custom fields.
I've to add a code field (php), that calls a function that has
$nid as argument. I've added this field to node entity but I can't understand if there are variables available on this field.
Adding a php field I've a textare where I can add php code.ù I've a custom functions that retuns html and require a nid as argument.
so in my custom field I should have something like:
<?php print my_function($nid); ?>
The problem is that I don't know where find the $nid: $object? $node? $entity? $context?
This field is added on an node entity.