Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
f51bc544
Commit
f51bc544
authored
19 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#51142
by markus: hook_comment not called for all update operations.
parent
71b0e2dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/comment.module
+4
-0
4 additions, 0 deletions
modules/comment.module
modules/comment/comment.module
+4
-0
4 additions, 0 deletions
modules/comment/comment.module
with
8 additions
and
0 deletions
modules/comment.module
+
4
−
0
View file @
f51bc544
...
...
@@ -1003,6 +1003,10 @@ function comment_admin_overview_submit($form_id, $edit) {
db_query
(
$query
,
$cid
);
$comment
=
_comment_load
(
$cid
);
_comment_update_node_statistics
(
$comment
->
nid
);
// Allow modules to respond to the updating of a comment.
comment_invoke_comment
(
$comment
,
$edit
[
'operation'
]);
// Add an entry to the watchdog log.
watchdog
(
'content'
,
t
(
'Comment: updated %subject.'
,
array
(
'%subject'
=>
theme
(
'placeholder'
,
$comment
->
subject
))),
WATCHDOG_NOTICE
,
l
(
t
(
'view'
),
'node/'
.
$comment
->
nid
,
NULL
,
NULL
,
'comment-'
.
$comment
->
cid
));
}
}
cache_clear_all
();
...
...
This diff is collapsed.
Click to expand it.
modules/comment/comment.module
+
4
−
0
View file @
f51bc544
...
...
@@ -1003,6 +1003,10 @@ function comment_admin_overview_submit($form_id, $edit) {
db_query
(
$query
,
$cid
);
$comment
=
_comment_load
(
$cid
);
_comment_update_node_statistics
(
$comment
->
nid
);
// Allow modules to respond to the updating of a comment.
comment_invoke_comment
(
$comment
,
$edit
[
'operation'
]);
// Add an entry to the watchdog log.
watchdog
(
'content'
,
t
(
'Comment: updated %subject.'
,
array
(
'%subject'
=>
theme
(
'placeholder'
,
$comment
->
subject
))),
WATCHDOG_NOTICE
,
l
(
t
(
'view'
),
'node/'
.
$comment
->
nid
,
NULL
,
NULL
,
'comment-'
.
$comment
->
cid
));
}
}
cache_clear_all
();
...
...
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