Using Fivestar with CCK and Custom Review Module
Last modified: May 28, 2009 - 02:46
You can combine Fivestar with the Custom Review module by creating CCK fields that use the following Target Node ID PHP code:
<?php
if (module_exists('custom_review')) {
if ((int)arg(1) && (arg(0)=='node'))
$tnid = custom_review_get_reviewed_node((int)arg(1));
else if (arg(1) == 'add')
$tnid = (int)arg(3);
else
$tnid = null;
}
else {
$tnid = null;
}
return $tnid;
?>