Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0c9908c3
Commit
0c9908c3
authored
Sep 01, 2006
by
drumm
Browse files
#81808
by m3avrck. Don't allow duplicate feeds.
parent
693ee741
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/aggregator/aggregator.module
View file @
0c9908c3
...
...
@@ -487,6 +487,9 @@ function aggregator_form_feed_validate($form_id, $form_values) {
if
(
strcasecmp
(
$feed
->
title
,
$form_values
[
'title'
])
==
0
)
{
form_set_error
(
'title'
,
t
(
'A feed named %feed already exists. Please enter a unique title.'
,
array
(
'%feed'
=>
$form_values
[
'title'
])));
}
if
(
strcasecmp
(
$feed
->
url
,
$form_values
[
'url'
])
==
0
)
{
form_set_error
(
'url'
,
t
(
'A feed with this URL %url already exists. Please enter a unique URL.'
,
array
(
'%url'
=>
$form_values
[
'url'
])));
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment