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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • get contact's membership
Pages: [1]

Author Topic: get contact's membership  (Read 1827 times)

aeszq

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 0
get contact's membership
December 13, 2009, 09:36:13 pm
Hi guys,

I'm trying to use API within smarty template. What I want is get a contact's membership information in the customized Summary.pl

I tried add
{crmAPI entity='membership_Contact' action="get" var="mymemberships" contact_id=$contact_id}
to the template. But I got "user warning: invalid error callback in /var/www/crm3.csf.com.au/sites/all/modules/civicrm/packages/PEAR.php on line 362."

Can anybody help?

Cheers,
George.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: get contact's membership
December 27, 2009, 03:32:48 pm
I think the entity would be MembershipContact or membership_contact.

Also, what version of CiviCRM are you using?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • get contact's membership

This forum was archived on 2017-11-26.