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) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Creating a "New Individual" in civicrm also creates a new Drupal user
Pages: [1]

Author Topic: Creating a "New Individual" in civicrm also creates a new Drupal user  (Read 920 times)

matt.goodwin

  • Guest
Creating a "New Individual" in civicrm also creates a new Drupal user
May 13, 2009, 12:01:26 pm
Is there a way that once one completes filling out the New Individual form in CiviCRM, it in turn can create a new drupal user?
I'm using Drupal 5 and CiviCRM 2.0.6.
Thanks

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Creating a "New Individual" in civicrm also creates a new Drupal user
May 13, 2009, 12:54:12 pm

1. FYI, CiviCRM 2.0.x is no longer supported

2. You can potentially do the below by implementing a hook and creating the user that way. You can potentially inject the user name as a custom field. This will require some php knowledge

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

matt.goodwin

  • Guest
Re: Creating a "New Individual" in civicrm also creates a new Drupal user
May 13, 2009, 01:57:32 pm
Thanks Lobo.
I've done some php but I've never created a hook before. What's a good reference for a hook newbie?
Where would I place this hook?
Thanks,
ttamniwdoog

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Creating a "New Individual" in civicrm also creates a new Drupal user
May 13, 2009, 02:29:02 pm

http://api.drupal.org/api/group/hooks
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

matt.goodwin

  • Guest
Re: Creating a "New Individual" in civicrm also creates a new Drupal user
May 15, 2009, 05:41:31 am
Thanks.
You're a life saver, like Lobo.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Creating a "New Individual" in civicrm also creates a new Drupal user

This forum was archived on 2017-11-26.