I am taking a look in the Profile 2 API documentation: http://api.drupalhelp.net/api/profile2/function
I guess profile_create()
or profile2_save()
are what I need. But I have read somewhere profile_create()
is deprecated.
Any example for how to create a Profile 2 profile programmatically?