From 575b5db782389c8e3e2ed5891b4fbd87ffa18f8b Mon Sep 17 00:00:00 2001 From: Fabio Varesano Date: Sun, 18 Feb 2007 14:23:13 +0000 Subject: Bug #117580 reported by tatien: Allow different video nodes to point to the same video --- video.module | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/video.module b/video.module index 392958d..8b2fd01 100644 --- a/video.module +++ b/video.module @@ -654,17 +654,6 @@ function video_delete($node) { * object */ function video_validate($node) { - if (isset($node->vidfile)) { - if ($node->vidfile != '') { - //let's see if we have it yet - $result = db_query("SELECT * from {video} WHERE vidfile = '%s' and nid <> %d", $node->vidfile, $node->nid); - if (db_num_rows($result) > 0) { - $video = db_fetch_object($result); - $othernode = node_load($video->nid); - form_set_error('vidfile', t('A video %link-to-existing using that link already exists', array("%link-to-existing" => l($othernode->title, 'node/' . $othernode->nid . '/edit')))); - } - } - } if (_video_get_filetype($node->vidfile) != 'youtube' and _video_get_filetype($node->vidfile) != 'googlevideo') { //If video is of type youtube don't check size. if (isset($node->videox) && $node->videox <= 0) { form_set_error('videox', t('You have to insert a valid horizontal pixel size for this video')); -- cgit v1.2.3