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 (Moderator: Donald Lobo) »
  • What is the replacement for CRM_Core_PseudoConstant::tag()
Pages: [1]

Author Topic: What is the replacement for CRM_Core_PseudoConstant::tag()  (Read 402 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
What is the replacement for CRM_Core_PseudoConstant::tag()
April 01, 2014, 11:36:36 am
In version 4.3, I am able to use CRM_Core_PseudoConstant::tag()    without issue.  This function seems to be removed in version 4.4.4.   

What is the recommended replacement?
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: What is the replacement for CRM_Core_PseudoConstant::tag()
April 01, 2014, 04:38:21 pm
You could use the "tag" api "get" method,
or for a more exact replacement you could use "getoptions" like
civicrm_api3('entity_tag', 'getoptions', array('field' => 'tag_id'));
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • What is the replacement for CRM_Core_PseudoConstant::tag()

This forum was archived on 2017-11-26.