'class' => 'medium-popup',
'qs' => "reset=1&id=%%id%%&contribution_id=%%contribution_id%%",
'title' => ts('Edit Payment'),
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::UPDATE),
],
];
$paymentEditLink = CRM_Core_Action::formLink(
'is_refund' => 0,
],
'extra' => '',
+ 'weight' => 0,
];
if (CRM_Core_Config::isEnabledBackOfficeCreditCardPayments()) {
'mode' => 'live',
],
'extra' => '',
+ 'weight' => 0,
];
}
if ($contributionStatus !== 'Pending') {
'is_refund' => 1,
],
'extra' => '',
+ 'weight' => 0,
];
}
'qs' => 'reset=1&id=%%id%%&eid=%%eid%%&fid=%%fid%%&action=delete&fcs=%%fcs%%',
'extra' => 'onclick = "if (confirm( \'' . $deleteExtra
. '\' ) ) this.href+=\'&confirmed=1\'; else return false;"',
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DELETE),
],
];
$customValue['deleteURL'] = CRM_Core_Action::formLink($deleteURL,
'url' => 'civicrm/contact/view/contribution',
'qs' => 'reset=1&id=%%contid%%&cid=%%cid%%&action=view&context=contribution&selectedChild=contribute',
'title' => ts('View Contribution'),
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::VIEW),
],
'remove' => [
'name' => ts('Remove'),
'title' => ts('Remove Transaction'),
'extra' => 'onclick = "removeFromBatch(%%id%%);"',
+ 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DELETE),
],
];
}