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
dc14c2fe
Commit
dc14c2fe
authored
3 months ago
by
colemanw
Browse files
Options
Downloads
Patches
Plain Diff
Api3 - Delete mailing_group_event* APIs (deprecated since 2014)
parent
b1249ba4
Branches
Branches containing commit
Tags
5.81.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/v3/MailingGroup.php
+1
-72
1 addition, 72 deletions
api/v3/MailingGroup.php
with
1 addition
and
72 deletions
api/v3/MailingGroup.php
+
1
−
72
View file @
dc14c2fe
...
...
@@ -10,82 +10,11 @@
*/
/**
* APIv3 f
unctions for registering/processing
mailing group
event
s.
* APIv3 f
or
mailing groups.
*
* @deprecated
* @package CiviCRM_APIv3
*/
/**
* Declare deprecated functions.
*
* @deprecated api notice
* @return string
* to indicate this entire api entity is deprecated
*/
function
_civicrm_api3_mailing_group_deprecation
()
{
$message
=
'This action is deprecated. Use the mailing_event API instead.'
;
return
[
'event_unsubscribe'
=>
$message
,
'event_domain_unsubscribe'
=>
$message
,
'event_resubscribe'
=>
$message
,
'event_subscribe'
=>
$message
,
];
}
/**
* Handle an unsubscribe event.
*
* @deprecated
*
* @param array $params
*
* @return array
*/
function
civicrm_api3_mailing_group_event_unsubscribe
(
$params
)
{
return
civicrm_api
(
'mailing_event_unsubscribe'
,
'create'
,
$params
);
}
/**
* Handle a site-level unsubscribe event.
*
* @deprecated
*
* @param array $params
*
* @return array
*/
function
civicrm_api3_mailing_group_event_domain_unsubscribe
(
$params
)
{
$params
[
'org_unsubscribe'
]
=
1
;
return
civicrm_api
(
'mailing_event_unsubscribe'
,
'create'
,
$params
);
}
/**
* Handle a re-subscription event.
*
* @deprecated
*
* @param array $params
*
* @return array
*/
function
civicrm_api3_mailing_group_event_resubscribe
(
$params
)
{
return
civicrm_api
(
'mailing_event_resubscribe'
,
'create'
,
$params
);
}
/**
* Handle a subscription event.
*
* @deprecated
*
* @param array $params
*
* @return array
*/
function
civicrm_api3_mailing_group_event_subscribe
(
$params
)
{
return
civicrm_api
(
'mailing_event_subscribe'
,
'create'
,
$params
);
}
/**
* Create mailing group.
*
...
...
This diff is collapsed.
Click to expand it.
totten
@totten
mentioned in commit
3125fb51
·
1 month ago
mentioned in commit
3125fb51
mentioned in commit 3125fb51e7a00f8140791a531ef2c3c22c02f194
Toggle commit list
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