By newbstah on
Hi There -
Would like to programmatically create a specific node type when a user authenticates an account. Alternately, It would be acceptable to create a link that would go to a php page and if there isn't anything at the new node type, and then programmatically creating the node. It would just be so much more elegant to do it when someone authenticates.
I've successfully programmatically created nodes. I've done searches and haven't been able to come up with anything for doing it when someone authenticates.
Is this possible?
Thanks in advance!
Comments
You need to write a small
You need to write a small module that implements hook_user's login operation. See the documentation.
http://api.drupal.org/api/function/hook_user/5
http://www.trailheadinteractive.com
http://www.trailheadinteractive.com
Thanks! That looks like it
Thanks! That looks like it will do the trick. Appreciate the help.