projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6238501
)
Added pre- hook to CRM_Core_BAO_CustomGroup::create().
author
Frank J. Gómez
<frank@ginkgostreet.com>
Wed, 16 Jul 2014 14:15:59 +0000
(10:15 -0400)
committer
Frank J. Gómez
<frank@ginkgostreet.com>
Wed, 16 Jul 2014 14:15:59 +0000
(10:15 -0400)
CRM/Core/BAO/CustomGroup.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/BAO/CustomGroup.php
b/CRM/Core/BAO/CustomGroup.php
index 33c05c199b32fb75f5ff158aa6b1c366aacccc52..7d10aba1471234e205b5c171dbd46bde0ddad141 100644
(file)
--- a/
CRM/Core/BAO/CustomGroup.php
+++ b/
CRM/Core/BAO/CustomGroup.php
@@
-168,6
+168,9
@@
class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
}
$group->is_reserved = $is_reserved;
+ $op = isset($params['id']) ? 'edit' : 'create';
+ CRM_Utils_Hook::pre($op, 'CustomGroup', CRM_Utils_Array::value('id', $params), $params);
+
// enclose the below in a transaction
$transaction = new CRM_Core_Transaction();