protected $_mode;
/**
- * Function to set variables up before form is built
+ * Set variables up before form is built
+ *
+ * @param CRM_Core_Form $form
*
* @return void
* @access public
}
/**
- * Function to build form for honoree contact / on behalf of organization.
+ * Build form for honoree contact / on behalf of organization.
*
- * @param $form object invoking Object
- * @param $contactType string contact type
- * @param $title string fieldset title
+ * @param CRM_Core_Form $form
*
* @static
*/
}
}
+ /**
+ * @param $form
+ */
static function postProcess($form) {
$params = $form->_params;
- if ($form->_honor_block_is_active && !empty($params['soft_credit_type_id'])) {
+ if (!empty($form->_honor_block_is_active) && !empty($params['soft_credit_type_id'])) {
$honorId = null;
//check if there is any duplicate contact