Closed (fixed)
Project:
Node Profile
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2007 at 13:22 UTC
Updated:
5 Mar 2007 at 09:22 UTC
Hi!
I would like to use the module login_destination to point users which haven't compile a profile (which I set up using node profile) to its completion (which I set up using pageroute). All I need is a php code snippet which from the user variable derives the existance of a node profile authored by him. How can I do that?
Comments
Comment #1
fagojust try to load the node...
$node = node_load(array('type' => ... , 'uid' => $user->uid));
$node will be null if there is no such node.
Comment #2
(not verified) commentedComment #3
redsun82 commentedThanks!!!!