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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
ab5cdfda
Commit
ab5cdfda
authored
Aug 8, 2008
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#268491
by mustafu, pwolanin, et al: fixed notice after deleting aggregator feed.
parent
92eda80f
No related branches found
No related tags found
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
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/aggregator/aggregator.module
+4
-0
4 additions, 0 deletions
modules/aggregator/aggregator.module
with
4 additions
and
0 deletions
modules/aggregator/aggregator.module
+
4
−
0
View file @
ab5cdfda
...
...
@@ -375,6 +375,8 @@ function aggregator_save_category($edit) {
}
else
{
db_query
(
'DELETE FROM {aggregator_category} WHERE cid = %d'
,
$edit
[
'cid'
]);
// Make sure there is no active block for this category.
db_query
(
"DELETE FROM
{
blocks
}
WHERE module = '%s' AND delta = '%s'"
,
'aggregator'
,
'category-'
.
$edit
[
'cid'
]);
$edit
[
'title'
]
=
''
;
$op
=
'delete'
;
}
...
...
@@ -415,6 +417,8 @@ function aggregator_save_feed($edit) {
}
db_query
(
'DELETE FROM {aggregator_feed} WHERE fid = %d'
,
$edit
[
'fid'
]);
db_query
(
'DELETE FROM {aggregator_item} WHERE fid = %d'
,
$edit
[
'fid'
]);
// Make sure there is no active block for this feed.
db_query
(
"DELETE FROM
{
blocks
}
WHERE module = '%s' AND delta = '%s'"
,
'aggregator'
,
'feed-'
.
$edit
[
'fid'
]);
}
elseif
(
!
empty
(
$edit
[
'title'
]))
{
db_query
(
"INSERT INTO
{
aggregator_feed
}
(title, url, refresh, block, description, image) VALUES ('%s', '%s', %d, 5, '', '')"
,
$edit
[
'title'
],
$edit
[
'url'
],
$edit
[
'refresh'
]);
...
...
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