| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
$className = CRM_Utils_System::getClassName($form);
if (in_array($className, array(
- 'CRM_Event_Form_ManageEvent_Location', 'CRM_Contact_Form_Domain'))) {
- $form->_blocks = array('Address' => ts('Address'),
+ 'CRM_Event_Form_ManageEvent_Location',
+ 'CRM_Contact_Form_Domain',
+ ))) {
+ $form->_blocks = array(
+ 'Address' => ts('Address'),
'Email' => ts('Email'),
'Phone' => ts('Phone'),
);
//build 1 instance of all blocks, without using ajax ...
foreach ($form->_blocks as $blockName => $label) {
- require_once (str_replace('_', DIRECTORY_SEPARATOR, 'CRM_Contact_Form_Edit_' . $blockName) . '.php');
+ require_once str_replace('_', DIRECTORY_SEPARATOR, 'CRM_Contact_Form_Edit_' . $blockName) . '.php';
$name = strtolower($blockName);
$instances = array(1);
$form->set($blockName . '_Block_Count', $instance);
$formName = 'CRM_Contact_Form_Edit_' . $blockName;
- $formName::buildQuickForm( $form );
+ $formName::buildQuickForm($form);
}
}
$form->assign('generateAjaxRequest', $generateAjaxRequest);
$form->assign('ajaxRequestBlocks', $ajaxRequestBlocks);
}
+
}