コード例 #1
0
/**
 *
 * Implementation of hook_civicrm_postProcess
 *
 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_postProcess
 */
function membershippayment_civicrm_postProcess($formName, &$form)
{
    if ($formName == 'CRM_Contribute_Form_Contribution') {
        $contribution = CRM_Membershippayment_Contribution_Form::singleton();
        $contribution->postProcess($formName, $form);
    }
}
コード例 #2
0
 /**
  * Singleton
  *
  * @return \CRM_Membershippayment_Contribution_Form
  */
 public static function singleton()
 {
     if (!self::$singleton) {
         self::$singleton = new CRM_Membershippayment_Contribution_Form();
     }
     return self::$singleton;
 }