aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Varesano <fax8@13637.no-reply.drupal.org>2007-02-18 14:23:13 +0000
committerFabio Varesano <fax8@13637.no-reply.drupal.org>2007-02-18 14:23:13 +0000
commit575b5db782389c8e3e2ed5891b4fbd87ffa18f8b (patch)
tree680254d2a97a9e1d89ba38c4aa969c6e1d8fc87f
parent0f6866b59bae258bc7bd1609381c8562c7c6bbab (diff)
downloadvideo-575b5db782389c8e3e2ed5891b4fbd87ffa18f8b.tar.gz
video-575b5db782389c8e3e2ed5891b4fbd87ffa18f8b.tar.bz2
Bug #117580 reported by tatien:
Allow different video nodes to point to the same video
-rw-r--r--video.module11
1 files changed, 0 insertions, 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'));