Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
justinfreeman (Agileware)
Core
Commits
4eeb36c8
Commit
4eeb36c8
authored
11 years ago
by
lobo
Browse files
Options
Downloads
Patches
Plain Diff
CRM-13746 - Enable delete hooks for Mailings
http://issues.civicrm.org/jira/browse/CRM-13746
parent
9dae0079
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/Mailing/BAO/Mailing.php
+4
-0
4 additions, 0 deletions
CRM/Mailing/BAO/Mailing.php
with
4 additions
and
0 deletions
CRM/Mailing/BAO/Mailing.php
+
4
−
0
View file @
4eeb36c8
...
...
@@ -2298,6 +2298,8 @@ LEFT JOIN civicrm_mailing_group g ON g.mailing_id = m.id
CRM_Core_Error
::
fatal
();
}
CRM_Utils_Hook
::
pre
(
'delete'
,
'Mailing'
,
$id
,
CRM_Core_DAO
::
$_nullArray
);
// delete all file attachments
CRM_Core_BAO_File
::
deleteEntityFile
(
'civicrm_mailing'
,
$id
...
...
@@ -2308,6 +2310,8 @@ LEFT JOIN civicrm_mailing_group g ON g.mailing_id = m.id
$dao
->
delete
();
CRM_Core_Session
::
setStatus
(
ts
(
'Selected mailing has been deleted.'
),
ts
(
'Deleted'
),
'success'
);
CRM_Utils_Hook
::
post
(
'delete'
,
'Mailing'
,
$id
,
$dao
);
}
/**
...
...
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