1

Topic: Synchronising email addresses between drupal and warehouse

We use the email_address field in the PG People table as an email distribution list. On our Indicia site at registration our observers link (via email_address and Last Name) with details in the People table when they create a new User account in Drupal.

The question now is how best to achieve an up to date email distribution list? We have a list of observers : some are Drupal Users, others are not. Those who are Users can change their email address via the  /my-account  page,  although this change is reflected only in Drupal and not in the warehouse. Is there a mechanism that User updates to email address can update the warehouse?

Steve Roe
Wildfowl & Wetlands Trust

2

Re: Synchronising email addresses between drupal and warehouse

Are you using the Easy Login module?
I don't know much about its workings but I would have thought it would update the warehouse if an email address were changed in Drupal.

Jim Bacon.

3

Re: Synchronising email addresses between drupal and warehouse

Yes, we're using the Easy Login module and it is enabled.

I thought that Easy Login enabled the look-up of the new Drupal User to existing Users in the warehouse at registration, and if no match made a new warehouse User & Person is created. I've just checked a number of pages in http://indicia-docs.readthedocs.org/ and they appear to confirm this.

So it appears to affect registration/matching, buy not any changes to email addresses post-registration?

Steve Roe
Wildfowl & Wetlands Trust

4

Re: Synchronising email addresses between drupal and warehouse

The Easy Login module does as you say. I just assumed, having made a link, that it would maintain it.

Certainly I see the following in easy_login.module

/**
 * Implements hook_user_update. Synchronises user fields to matching custom attributes on the
 * Indicia warehouse.
 * @param array $edit Form edit data
 * @param array $account User account
 * @param $category
 */
function easy_login_user_update(&$edit, $account) {
  easy_login_synchronise_account_to_warehouse($edit, $account, false);
}

I can see easy_login_synchronise_account_to_warehouse() finds user fields with names like 'field_indicia_*' with the intention of updating them and sends them to the function easy_login_call_get_user_id() which forwards them to the warehouse with the email address.

Next question for me would be "What does the warehouse do with this information?". Next question for you is to check your version of Easy Login matches the version I am looking at. John may step in with more information since this is his work.

Jim Bacon.

5

Re: Synchronising email addresses between drupal and warehouse

We're running Easy Login 6.x-3.3. The code here does not match yours, there is no matching code 

function easy_login_user_update

Any further info or suggestions?

Steve Roe
Wildfowl & Wetlands Trust

6

Re: Synchronising email addresses between drupal and warehouse

You're still on Drupal 6 then. A very quick scan of the code did not reveal a similar function to me either. Any plans to migrate to Drupal 7 or 8? If not, you may need to invest in an update to the D6 module.

Jim Bacon.

7

Re: Synchronising email addresses between drupal and warehouse

Thanks. Yes, still running Drupal 6.

A colleague had a discussion (a while back) with John van Breda abut migrating to Drupal 8, who had advised at that time not to. How close is Indicia to being compatible with Drupal 8? Now might be the time for us to do it.

Steve Roe
Wildfowl & Wetlands Trust

8

Re: Synchronising email addresses between drupal and warehouse

Hi Steve
I've actually got the core functionality for the iform module all working nicely for Drupal 8 (https://github.com/Indicia-Team/drupal- … ee/develop) though it is still under quite heavy development and testing, and you will find that only the fairly standard forms and reports work.
Before jumping to D8, bear in mind that it is still in beta, and there are lots of improvements but also lots of bits that you'd take for granted in D7 which are not available yet. For example, there is no module yet that provides a simple way to do drop down menus - you'd have to theme it yourself.
Cheers
John

John van Breda
Biodiverse IT

9

Re: Synchronising email addresses between drupal and warehouse

Hi John,
Thanks very much for the update on D8. We'll need to get our User synchronisation resolved, so D7 is more likely for us than a updating our D6 Easy Login module.
Steve

Steve Roe
Wildfowl & Wetlands Trust