CCK - Sample code for Target Node ID
vpiotr - May 25, 2008 - 10:58
| Project: | Custom review |
| Version: | 5.x-2.0-1 |
| Component: | Documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Please add somewhere in documentation or even user interface sample working code for Target Node ID.
This code below is a working example:
<?php
if (module_exists('custom_review')) {
$tnid = custom_review_get_reviewed_node((int)arg(1));
}
else {
$tnid = null;
}
return $tnid;
?>
#1
I'm really sorry, but I don't understand what you mean (I can be considered as a beginner with Drupal modules, so pardon this question). Is that a code I should also add to my module?
What usecase is that helping for ? So if you can just tell me more about it, I'll be more than glad to make any additions and documentation with that, thx!
by the way, I guess I will have one day next week to make a complete review of custom review :) so feel free to add all your comments, this will help me to do the checking.
bye
#2
Sorry, wrong place. Should be "fivestar"...
#3
(.)
#4
(sorry, wrong place again)