From 0c9908c37db715bb339024a8791714415e77a5ae Mon Sep 17 00:00:00 2001 From: Neil Drumm <drumm@3064.no-reply.drupal.org> Date: Fri, 1 Sep 2006 03:30:16 +0000 Subject: [PATCH] #81808 by m3avrck. Don't allow duplicate feeds. --- modules/aggregator/aggregator.module | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index a678443379d0..a5ec9b18cb95 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']))); + } } } } -- GitLab