CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Create a Drupal User automatically when creating a contact
Pages: [1]

Author Topic: Create a Drupal User automatically when creating a contact  (Read 813 times)

mhenning

  • Guest
Create a Drupal User automatically when creating a contact
March 31, 2010, 10:24:21 am
I would like to have a drupal user created for every CiviCRM contact that I enter.  Has anyone done this or is there a recipe somewhere of what needs to be done to accomplish this?

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Create a Drupal User automatically when creating a contact
March 31, 2010, 10:55:26 am
an easy way to do this would be to create a profile with the 'create user account' option selected, and then use this profile to enter new contacts instead of the generic form.

otherwise i think you need to call something like civicrm_register_data in civicrm/drupal/civicrm.module within your contact creation process in your own custom module.

there's also a very old documentation on someone going about this, probably out of date to some extent but looks like the idea at least might be pertinent to what you want. http://wiki.civicrm.org/confluence/display/CRMDOC/Create+User+from+Contact


mhenning

  • Guest
Re: Create a Drupal User automatically when creating a contact
March 31, 2010, 02:48:20 pm
Thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Create a Drupal User automatically when creating a contact

This forum was archived on 2017-11-26.