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
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

Striky2 - May 25, 2008 - 11:24
Status:active» postponed (maintainer needs more info)

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

vpiotr - May 25, 2008 - 19:24
Status:postponed (maintainer needs more info)» closed

Sorry, wrong place. Should be "fivestar"...

#3

vpiotr - June 25, 2008 - 23:25
Status:closed» active

(.)

#4

vpiotr - June 25, 2008 - 23:26
Status:active» closed

(sorry, wrong place again)

 
 

Drupal is a registered trademark of Dries Buytaert.