Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
civirules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
civirules
Commits
0456d70e
Commit
0456d70e
authored
8 years ago
by
eileenmcnaugton
Browse files
Options
Downloads
Patches
Plain Diff
Add entityTypes hook.
This hook is required for the basic_get api in later versions.
parent
a8484fe0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
civirules.php
+31
-1
31 additions, 1 deletion
civirules.php
with
31 additions
and
1 deletion
civirules.php
+
31
−
1
View file @
0456d70e
...
...
@@ -140,4 +140,34 @@ function civirules_civicrm_post( $op, $objectName, $objectId, &$objectRef ) {
function
civirules_civirules_alter_trigger_data
(
CRM_Civirules_TriggerData_TriggerData
&
$triggerData
)
{
//also add the custom data which is passed to the pre hook (and not the post)
CRM_Civirules_Utils_CustomDataFromPre
::
addCustomDataToTriggerData
(
$triggerData
);
}
\ No newline at end of file
}
/**
* Register extensions entities.
*
* Required for api calls.
*
* @param array $entityTypes
*/
function
civirules_civicrm_entityTypes
(
&
$entityTypes
)
{
$entityTypes
[
'CRM_Civirules_BAO_Action'
]
=
array
(
'name'
=>
'CiviRuleAction'
,
'class'
=>
'CRM_Civirules_BAO_Action'
,
'table'
=>
'civirule_action'
,
);
$entityTypes
[
'CRM_Civirules_BAO_Condition'
]
=
array
(
'name'
=>
'CiviRuleCondition'
,
'class'
=>
'CRM_Civirules_BAO_Condition'
,
'table'
=>
'civirule_condition'
,
);
$entityTypes
[
'CRM_Civirules_BAO_Trigger'
]
=
array
(
'name'
=>
'CiviRuleTrigger'
,
'class'
=>
'CRM_Civirules_BAO_Trigger'
,
'table'
=>
'civirule_trigger'
,
);
$entityTypes
[
'CRM_Civirules_BAO_Rule'
]
=
array
(
'name'
=>
'CiviRuleRule'
,
'class'
=>
'CRM_Civirules_BAO_Rule'
,
'table'
=>
'civirule_rule'
,
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment