forked from backoffice/uc_civicrm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uc_civicrm.rules.inc
32 lines (28 loc) · 957 Bytes
/
uc_civicrm.rules.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* @file
* This file contains the Rules hooks and functions necessary to make the order
* related entity, conditions, events, and actions work.
*/
/**
* Implements hook_rules_action_info().
*/
function uc_civicrm_rules_action_info() {
$actions['uc_civicrm_create_order_civicrm'] = array(
'label' => t('Add and update CiviCRM contact record'),
'base' => 'uc_civicrm_action_order_civicrm',
'parameter' => array(
'order' => array('type' => 'uc_order', 'label' => t('Order')),
'is_new' => array('type' => 'boolean', 'label' => t('Is new?'))
),
);
$actions['uc_civicrm_update_order_civicrm'] = array(
'label' => t('Update CiviCRM contact record'),
'base' => 'uc_civicrm_action_order_civicrm',
'parameter' => array(
'order' => array('type' => 'uc_order', 'label' => t('Order'), ),
'is_new' => array('type' => 'boolean', 'label' => t('Is new?'))
),
);
return $actions;
}