I was able to get this to work as a display suite code field by using

<?php echo theme('togglenode_links', togglenode_get_links('node', $object)); ?>

Figured I would mention this in case you want to add this code snippet to the project docs

Comments

gooddesignusa’s picture

When I updated to the latest version of Display Suite(6.x-1.4) this stopped working. After some investigating it seemed to not work on nodes that I had a CCK node reference field. I was using a block view to print node reference fields. I turned that block into a display suite field. The code field was also on the node that was being referenced. It seems that it was running that function more than once and It was actually causing toggle node to link to the node reference edit page. I was able to get this working by checking the nid against the arg:

<?php
if($object->nid == arg(1)){
echo theme('togglenode_links', togglenode_get_links('node', $object));
}
?>