Skip to content

Commit

Permalink
Additional for CRM-20488: remove useless preProcess() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
twomice committed Jun 13, 2017
1 parent 6b0044c commit 621a529
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions CRM/Contribute/Form/SoftCredit.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,6 @@
*/
class CRM_Contribute_Form_SoftCredit {

/**
* Set variables up before form is built.
*
* @param CRM_Core_Form $form
*/
public static function preProcess(&$form) {
$contriDAO = new CRM_Contribute_DAO_Contribution();
$contriDAO->id = $form->_id;
$contriDAO->find(TRUE);
if ($contriDAO->contribution_page_id) {
$ufJoinParams = array(
'module' => 'soft_credit',
'entity_table' => 'civicrm_contribution_page',
'entity_id' => $contriDAO->contribution_page_id,
);
$profileId = CRM_Core_BAO_UFJoin::getUFGroupIds($ufJoinParams);
}
}

/**
* Function used to build form element for soft credit block.
*
Expand Down

0 comments on commit 621a529

Please sign in to comment.