Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
0a104499
Commit
0a104499
authored
4 years ago
by
eileen
Browse files
Options
Downloads
Patches
Plain Diff
#2017
Deprecate an unused function
parent
e2c512f7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Core/BAO/Location.php
+5
-0
5 additions, 0 deletions
CRM/Core/BAO/Location.php
with
5 additions
and
0 deletions
CRM/Core/BAO/Location.php
+
5
−
0
View file @
0a104499
...
...
@@ -240,6 +240,10 @@ WHERE e.id = %1";
/**
* Delete all the block associated with the location.
*
* Note a universe search on 1 Oct 2020 found no calls to this function.
*
* @deprecated
*
* @param int $contactId
* Contact id.
* @param int $locationTypeId
...
...
@@ -247,6 +251,7 @@ WHERE e.id = %1";
* @throws CRM_Core_Exception
*/
public
static
function
deleteLocationBlocks
(
$contactId
,
$locationTypeId
)
{
CRM_Core_Error
::
deprecatedFunctionWarning
(
'Use v4 api'
);
// ensure that contactId has a value
if
(
empty
(
$contactId
)
||
!
CRM_Utils_Rule
::
positiveInteger
(
$contactId
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment