- public static function &recurLinks($recurID = FALSE, $context = 'contribution') {
- if (!(self::$_links)) {
- self::$_links = [
- CRM_Core_Action::VIEW => [
- 'name' => ts('View'),
- 'title' => ts('View Recurring Payment'),
- 'url' => 'civicrm/contact/view/contributionrecur',
- 'qs' => "reset=1&id=%%crid%%&cid=%%cid%%&context={$context}",
- ],
- CRM_Core_Action::UPDATE => [
- 'name' => ts('Edit'),
- 'title' => ts('Edit Recurring Payment'),
- 'url' => 'civicrm/contribute/updaterecur',
- 'qs' => "reset=1&action=update&crid=%%crid%%&cid=%%cid%%&context={$context}",
- ],
- CRM_Core_Action::DISABLE => [
- 'name' => ts('Cancel'),
- 'title' => ts('Cancel'),
- 'ref' => 'crm-enable-disable',
- ],
- ];
- }
+ public static function recurLinks($recurID = FALSE, $context = 'contribution') {
+ $links = [
+ CRM_Core_Action::VIEW => [
+ 'name' => ts('View'),
+ 'title' => ts('View Recurring Payment'),
+ 'url' => 'civicrm/contact/view/contributionrecur',
+ 'qs' => "reset=1&id=%%crid%%&cid=%%cid%%&context={$context}",
+ ],
+ CRM_Core_Action::UPDATE => [
+ 'name' => ts('Edit'),
+ 'title' => ts('Edit Recurring Payment'),
+ 'url' => 'civicrm/contribute/updaterecur',
+ 'qs' => "reset=1&action=update&crid=%%crid%%&cid=%%cid%%&context={$context}",
+ ],
+ CRM_Core_Action::DISABLE => [
+ 'name' => ts('Cancel'),
+ 'title' => ts('Cancel'),
+ 'ref' => 'crm-enable-disable',
+ ],
+ ];