| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
// add select for contact type
$contactTypeA = &$this->add('select', 'contact_types_a', ts('Contact Type A') . ' ',
array(
- '' => ts('All Contacts')) + $contactTypes
+ '' => ts('All Contacts'),
+ ) + $contactTypes
);
$contactTypeB = &$this->add('select', 'contact_types_b', ts('Contact Type B') . ' ',
array(
- '' => ts('All Contacts')) + $contactTypes
+ '' => ts('All Contacts'),
+ ) + $contactTypes
);
$isActive = &$this->add('checkbox', 'is_active', ts('Enabled?'));
if ($this->_id &&
CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_RelationshipType', $this->_id, 'is_reserved')
) {
- foreach (array('contactTypeA', 'contactTypeB', 'isActive') as $field)$$field->freeze();
+ foreach (array('contactTypeA', 'contactTypeB', 'isActive') as $field) {
+ $$field->freeze();
+ }
}
if ($this->_action & CRM_Core_Action::VIEW) {