Skip to content

Commit

Permalink
Merge pull request civicrm#27976 from eileenmcnaughton/dep
Browse files Browse the repository at this point in the history
Standardise deprecations
  • Loading branch information
mattwire authored Nov 1, 2023
2 parents 134a8dc + 29c0675 commit 37e142b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 6 additions & 2 deletions CRM/Contact/BAO/Relationship.php
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,9 @@ public static function membershipTypeToRelationshipTypes(&$params, $direction =
}

/**
* DELETEME only-used-by-user-dashboard
* @deprecated since 5.68. Will be removed around 5.74.
*
* Only-used-by-user-dashboard.
*/
public static function getContactRelationshipSelector(&$params) {
// format the params
Expand Down Expand Up @@ -1950,7 +1952,9 @@ public static function getContactRelationshipSelector(&$params) {
}

/**
* DELETEME only-used-by-user-dashboard
* @deprecated since 5.68. Will be removed around 5.74.
*
* Only-used-by-user-dashboard.
*/
public static function getColumnHeaders() {
return [
Expand Down
4 changes: 3 additions & 1 deletion CRM/Contact/Page/AJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,9 @@ public static function toggleDedupeSelect() {
}

/**
* DELETEME only-used-by-user-dashboard
* @deprecated since 5.68. Will be removed around 5.74.
*
* Only-used-by-user-dashboard.
*/
public static function getContactRelationships() {
$contactID = CRM_Utils_Type::escape($_GET['cid'], 'Integer');
Expand Down
4 changes: 3 additions & 1 deletion CRM/Contact/Page/View/Relationship.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ public function delete() {
}

/**
* DELETEME only-used-by-user-dashboard
* @deprecated since 5.68. Will be removed around 5.74.
*
* Only-used-by-user-dashboard.
*
* @return array
* (reference) of action links
Expand Down
2 changes: 1 addition & 1 deletion CRM/Contact/Page/View/UserDashBoard.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function buildUserDashBoard() {
// Relationship section
// FIXME - this used to share code with the contact summary "Relationships" tab
// now that tab has been switched to use SearchKit, and this ought to be switched as well;
// then remove all code commented with "DELETEME only-used-by-user-dashboard"
// then remove all code commented with "only-used-by-user-dashboard"
if (!empty($dashboardOptions['Permissioned Orgs']) && CRM_Core_Permission::check('view my contact')) {
$columnHeaders = CRM_Contact_BAO_Relationship::getColumnHeaders();
$contactRelationships = $selector = NULL;
Expand Down

0 comments on commit 37e142b

Please sign in to comment.