Active
Project:
NodeReferrer
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2011 at 10:48 UTC
Updated:
17 Mar 2011 at 10:48 UTC
Hi
couldn't be better if noderefferer has own db table with it's values?
why?
e.g. while I am using hook_nodeapi, and I am trying to get node refferer values on $op=update, I can't, because they aren't there in $node in this case.
I helped myself wtih db request to node rererence field, and base on $node->nid I take nid for node refferer reference.
$ref_nid = db_result(db_query("SELECT content_type_spolujazda_naspat.nid FROM {content_type_spolujazda_naspat} WHERE content_type_spolujazda_naspat.field_node_ref_url_spoluj_ponuka_nid = %d", $node->nid));
But, it could be easier and more simply, if node refferer values will be stored in db and then they will be accessible in hook_nodeapi.
thanks
Igor