Embed rate number up down widget in panel node I am using rate module and the number up down widget, and in the settings for this module I had set it to appear at the top of content. It was appearing fine. However, now I am using a panel for this node and the widget no longer appears as expected. I need to embed it into my panel. How would I go about this? I have done a few searchs and found rate_embed, but I am not having any luck getting this to work. I have tried the following. My rate widget is called 'points', and its settings are at /admin/structure/rate/:

function:

&lt;?php rate_embed(&amp;$node, $machine_name, $mode = RATE_FULL); ?&gt;


What I tried:

&lt;?php print rate_embed($node, 'points', $mode = RATE_FULL); ?&gt;
&lt;?php echo rate_embed($node, 'points', $mode = RATE_FULL); ?&gt;


this was giving an error that rate_embed was acting on a non-object.
You can try the following code.

 $up_down = rate_generate_widget('1', 'node', {current node id}, RATE_FULL, TRUE, FALSE, NULL);
 print render($up_down);