hi
i need to create programatically node registrations for some users with "verified" flag setted to 0, in order to they can themselves to confirm the registration

is there a public method i can use to register a user to a given node?

i've searched in the module code but i can't figure how to do this

Comments

leandro713 created an issue.

rudiedirkx’s picture

They're normal Entity methods:

$reg = entity_get_controller('node_registration')->create(array(
  // .. your data here, don't forget 'nid' ..
));
$reg->save();

No need for a function (like node_save()) to do that.

leandro713’s picture

oh yes
thanks