CRM-16088 Allow subclassing of 'CRM_Event_Form_ManageEvent_Location' and 'CRM_Contact...
authorTim Mallezie <tim.mallezie@chiro.be>
Tue, 10 Mar 2015 19:38:19 +0000 (20:38 +0100)
committerTim Mallezie <tim.mallezie@chiro.be>
Tue, 10 Mar 2015 19:38:19 +0000 (20:38 +0100)
CRM/Contact/Form/Location.php

index 35a9baa2350d5e897e9e3ea421fa1373f4d94df0..2c539a21ebf9e14c17408fbae1fbde6e351a272d 100644 (file)
@@ -57,7 +57,9 @@ class CRM_Contact_Form_Location {
     if (in_array($className, array(
       'CRM_Event_Form_ManageEvent_Location',
       'CRM_Contact_Form_Domain',
-    ))) {
+    ))
+    || is_subclass_of($className, 'CRM_Event_Form_ManageEvent_Location')
+    || is_subclass_of($className, 'CRM_Contact_Form_Domain')) {
       $form->_blocks = array(
         'Address' => ts('Address'),
         'Email' => ts('Email'),