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) »
  • Custom Data with civicrm_create_event
Pages: [1]

Author Topic: Custom Data with civicrm_create_event  (Read 649 times)

jperickson

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Custom Data with civicrm_create_event
August 07, 2010, 05:21:29 pm
Hello,

Does anyone know how to go about adding custom data to an event during creation with civicrm_create_event? I have tried using custom_id as a key in $params but without luck.

Thank you for your help,

Jeff

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom Data with civicrm_create_event
August 07, 2010, 07:51:58 pm

check:

http://svn.civicrm.org/civicrm/branches/v3.2/tests/phpunit/CRM/Contribute/BAO/ContributionTest.php

function testCreateWithCustomData

it will be very similar

would be awesome if you can contribute back a few unit tests that test event creation with/without custom data so we can add to our test suite

thanx

lobo

A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Custom Data with civicrm_create_event

This forum was archived on 2017-11-26.