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) »
  • Prevent civicrm contact from being created during drupal register
Pages: [1]

Author Topic: Prevent civicrm contact from being created during drupal register  (Read 1307 times)

axlroach

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
Prevent civicrm contact from being created during drupal register
April 03, 2012, 05:33:19 am
Hi all,

I'm wondering if there is a setting to prevent civicrm from creating a contact when a user registers for a drupal account.  If not, could someone please point me to the code that creates a contact during drupal registration so that I can override it?

Thanks so much.

-axlroach

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Prevent civicrm contact from being created during drupal register
April 03, 2012, 05:42:49 am
can you explain the rationale / use case for this ?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

axlroach

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
Re: Prevent civicrm contact from being created during drupal register
April 03, 2012, 05:50:21 am
Sure. 

I have a civicrm database full of customers.  This data has been imported, and email address is NOT included as part of the data for these customers.  In the absence of an email address, the customer's account number is the way they are uniquely identified within the civicrm database.  Customers will then be able to visit a drupal site that is tied to the civicrm database.  They'll register using their account number, their email and a username.  The system will link their new drupal user id to their pre-existing civicrm contact id at registration time. 

Currently, all of this works as expected.  The only issue is that an EXTRA civicrm contact is created that just has the email address that the customer enters during drupal registration.  I want to stop civicrm from creating that contact record.

Does that help?

Thanks!
axlroach

Barnacle

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
    • White Fuse Media
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
Re: Prevent civicrm contact from being created during drupal register
July 05, 2013, 03:53:02 am
Did you ever find out how to do this? I have a similar use case.
--
http://whitefusemedia.com/

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Prevent civicrm contact from being created during drupal register
July 05, 2013, 04:50:36 am
CiviCRM will create a new contact if it doesn't find an existing one. It considers an existing one a valid if it would be a "duplicate" of the new one, so it uses the de-dupe rules to determine that. If your dedupe rules use email as the main factor, then your system won't work. You can change that I think to use name or some other data and then it should work as you want.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Barnacle

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
    • White Fuse Media
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
Re: Prevent civicrm contact from being created during drupal register
July 08, 2013, 01:40:17 am
That's helpful, thanks! I've updated my dedupe rules on that basis.
--
http://whitefusemedia.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Prevent civicrm contact from being created during drupal register

This forum was archived on 2017-11-26.