From: Tim Mallezie Date: Tue, 10 Mar 2015 19:38:19 +0000 (+0100) Subject: CRM-16088 Allow subclassing of 'CRM_Event_Form_ManageEvent_Location' and 'CRM_Contact... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3a99ddd141ee686152bcbb5eb4bedca04917e5d6;p=civicrm-core.git CRM-16088 Allow subclassing of 'CRM_Event_Form_ManageEvent_Location' and 'CRM_Contact_Form_Domain' --- diff --git a/CRM/Contact/Form/Location.php b/CRM/Contact/Form/Location.php index 35a9baa235..2c539a21eb 100644 --- a/CRM/Contact/Form/Location.php +++ b/CRM/Contact/Form/Location.php @@ -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'),