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

fago’s picture

Status: Active » Fixed

just try to load the node...
$node = node_load(array('type' => ... , 'uid' => $user->uid));

$node will be null if there is no such node.

Anonymous’s picture

Status: Fixed » Closed (fixed)
redsun82’s picture

Thanks!!!!