Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
- Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects - Obsolete
Use of this project is deprecated. - Module categories: E-commerce, Integrations, Access Control
- Created by penyaskito on , updated
- Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.