Skip to content

Commit

Permalink
Adjust weights so link order is inchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed May 17, 2023
1 parent 8a89a76 commit aabed69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Contribute/Page/Tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public static function selfServiceRecurLinks(int $recurID): array {
'title' => ts('Cancel'),
// Only display on-site links in a popup.
'class' => (stripos($url, 'http') !== FALSE) ? 'no-popup' : '',
'weight' => -50,
];
}

Expand All @@ -152,6 +153,7 @@ public static function selfServiceRecurLinks(int $recurID): array {
'url' => $url,
// Only display on-site links in a popup.
'class' => (stripos($url, 'http') !== FALSE) ? 'no-popup' : '',
'weight' => -15,
];
}

Expand All @@ -166,6 +168,7 @@ public static function selfServiceRecurLinks(int $recurID): array {
'url' => $url,
// Only display on-site links in a popup.
'class' => (stripos($url, 'http') !== FALSE) ? 'no-popup' : '',
'weight' => -10,
];
}
return $links;
Expand Down

0 comments on commit aabed69

Please sign in to comment.