Added pre- hook to CRM_Core_BAO_CustomGroup::create().
authorFrank J. Gómez <frank@ginkgostreet.com>
Wed, 16 Jul 2014 14:15:59 +0000 (10:15 -0400)
committerFrank J. Gómez <frank@ginkgostreet.com>
Wed, 16 Jul 2014 14:15:59 +0000 (10:15 -0400)
CRM/Core/BAO/CustomGroup.php

index 33c05c199b32fb75f5ff158aa6b1c366aacccc52..7d10aba1471234e205b5c171dbd46bde0ddad141 100644 (file)
@@ -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();