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) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Trigger ruleset after event creation
Pages: [1]

Author Topic: Trigger ruleset after event creation  (Read 470 times)

jalves

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Trigger ruleset after event creation
January 17, 2013, 05:59:46 pm
Hi
i'm using the civicrm rules integration with drupal and i've configured a ruleset to send email to all users of administration role after an event is created.
The problem is the rule isn't being triggered..
Should i call it from code in event.tpl (or something like that?) already tried a few  places but no success..

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: Trigger ruleset after event creation
January 18, 2013, 08:25:47 am

most of the rules code was written and tested for some work we did on civimail. We tried to structure it so that we could extend and add other objects as needed. However, it did not get a lot of interest / funding and things remained as is

I suspect the event object is not handled by the integration module. Your best bet would be to take a look at civicrm_rules.module and check the code there, specifically the function
civicrm_rules_civicrm_postProcess

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

jalves

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Re: Trigger ruleset after event creation
January 20, 2013, 05:56:49 pm
Thank you for your reply!
Can you give an example of how to do it or can i read some documentation how to apply to events?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Trigger ruleset after event creation
January 20, 2013, 11:53:41 pm
If you are working with Drupal 6 the rules integration should work in the context you are looking at - however, there is a settings form to enable which entities should work.

You may also need to look at permissions.

For drupal 7 the civicrm_entity module is likely the way to go
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Trigger ruleset after event creation

This forum was archived on 2017-11-26.