Replaced by: 

Deprecated: this module is deprecated, use Xero Sync instead.

Xero Contact Sync pushes users created in your Drupal site to the Xero platform (see https://www.xero.com/)

Existing integrations

By default it uses a queue, but it's integrated with advancedqueue module in case you want to customize the behaviour if there are any failures. By default, with advancedqueue, if there's a failure it will retry for a week once a day.

Extending

In case you want to extend the data being set, you can subscribe to the XeroContactSyncEvents::SAVE event.

e.g:

class AhsXeroContactSyncSubscriber implements EventSubscriberInterface {

  /**
   * {@inheritdoc}
   */
  public static function getSubscribedEvents() {
    return [
      XeroContactSyncEvents::SAVE => 'onSave',
    ];
  }

  /**
   * Updates the xero contact even info before the xero contact is synced.
   *
   * @param \Drupal\xero_contact_sync\XeroContactSyncEvent $event
   *   The xero contact sync event.
   */
  public function onSave(XeroContactSyncEvent $event) {
    $user = $event->getUser();
    $data = $event->getData();
    $data['Name'] = $user->getDisplayName() . ' (' . $user->getAccountName() . ')';
    $event->setData($data);
  }

}

Sponsors

Initial development: Awakened Heart Sangha

Supporting organizations: 
Original Development

Project information

Releases