return $form;
}
- // by default generate 5 blocks
- $item_count = 6;
+ // by default generate 10 blocks
+ $item_count = 11;
$showSoftCreditRow = 2;
if ($form->getAction() & CRM_Core_Action::UPDATE) {
$form->addSelect("soft_credit_type[{$rowNumber}]", array(
'entity' => 'contribution_soft',
'field' => 'soft_credit_type_id',
- 'label' => ts('Type')
+ 'label' => ts('Type'),
));
if (!empty($form->_softCreditInfo['soft_credit'][$rowNumber]['soft_credit_id'])) {
$form->add('hidden', "soft_credit_id[{$rowNumber}]",
* @param $self
*
* @return array
- * of errors
- * @static
+ * Array of errors
*/
public static function formRule($fields, $errors, $self) {
$errors = array();