* alterable.
* @param string $rev
* an intermediate version; note that setPostUpgradeMessage is called repeatedly with different $revs.
- * @return void
*/
public function setPostUpgradeMessage(&$postUpgradeMessage, $rev) {
}
/**
* Remove a payment processor if not in use
*
- * @param $name
+ * @param CRM_Queue_TaskContext $ctx
+ * @param string $name
+ * @return bool
* @throws \CiviCRM_API3_Exception
*/
- public static function removePaymentProcessorType($name) {
+ public static function removePaymentProcessorType(CRM_Queue_TaskContext $ctx, $name) {
$processors = civicrm_api3('PaymentProcessor', 'getcount', array('payment_processor_type_id' => $name));
if (empty($processors['result'])) {
$result = civicrm_api3('PaymentProcessorType', 'get', array(
civicrm_api3('PaymentProcessorType', 'delete', array('id' => $result['id']));
}
}
+ return TRUE;
}
}