- if (count($pps) > 1) {
- $this->addRadio('payment_processor_id', ts('Payment Method'), $pps,
- NULL, " "
- );
- }
- elseif (!empty($pps)) {
- $ppKeys = array_keys($pps);
- $currentPP = array_pop($ppKeys);
- $this->addElement('hidden', 'payment_processor_id', $currentPP);
- }