summaryrefslogtreecommitdiff
path: root/modules/aggregator
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-01 03:30:16 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-01 03:30:16 +0000
commit0c9908c37db715bb339024a8791714415e77a5ae (patch)
tree4d026aa7753b8ad384f7ad993232b3b594927588 /modules/aggregator
parent693ee7414524d6c11528399c01b38745b0ada36e (diff)
downloadbrdo-0c9908c37db715bb339024a8791714415e77a5ae.tar.gz
brdo-0c9908c37db715bb339024a8791714415e77a5ae.tar.bz2
#81808 by m3avrck. Don't allow duplicate feeds.
Diffstat (limited to 'modules/aggregator')
-rw-r--r--modules/aggregator/aggregator.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index a67844337..a5ec9b18c 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -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'])));
+ }
}
}
}