Similar to the request for CiviCRM_Subscribe-- wondering whether there's a plan/work going on to have this module support the new CiviCRM APIs that were deprecated as of 1.9?

Comments

anniekin’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

I ported this for our site for CiviCRM 2.0, so I'm posting the patch here. I've never contributed to Drupal before, so the code definitely needs review if anyone else is planning on using it.

The code modifications are to support CiviCRM 2.0. This involved two things: using the non-deprecated CiviCRM API's and referring to Contacts and Groups as arrays rather than objects.

EvanDonovan’s picture

Title: CiviCRM 2.0 Compatible? » Compatibility with CiviCRM 2.0 (5.x branch)
Category: support » bug

Will review this, and commit it as 5.x-2.0 shortly. (2.0 since I don't want to disrupt people on the stable 5.x-1.2 branch.)

Patches should be made with diff -up.

EvanDonovan’s picture

Version: 5.x-1.2 » 5.x-1.x-dev
StatusFileSize
new2.96 KB

Attached is a revised version of the patch, which I am about to commit to 5.x-1.x-dev.

It is untested, since I do not have a 5.x install of Drupal & CiviCRM locally, but should be good. If anyone still uses the 5.x branch of this module, could they report if it works?

EvanDonovan’s picture

Status: Needs review » Fixed

Realized, too late, that the array keys didn't have quotes around them. I'm going to call this fixed, but would be good to get a confirmation from someone who may still be using the 5.x-1.x version, if they are willing to try the 5.x-1.x-dev after it gets rebuilt.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.