From f005101afdf61818dc95ca46177544709d719fb0 Mon Sep 17 00:00:00 2001
From: Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>
Date: Fri, 24 Mar 2006 14:59:06 +0000
Subject: [PATCH] #54519, remove old bookmarklet code. Use prepopulate.module,
 patch by budda

---
 modules/node.module      | 7 -------
 modules/node/node.module | 7 -------
 2 files changed, 14 deletions(-)

diff --git a/modules/node.module b/modules/node.module
index 3cd00a5e5dc2..a62f0dbc88d8 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -1787,13 +1787,6 @@ function node_add($type) {
     // Initialize settings:
     $node = array('uid' => $user->uid, 'name' => $user->name, 'type' => $type);
 
-    // Allow the following fields to be initialized via $_GET (e.g. for use
-    // with a "blog it" bookmarklet):
-    foreach (array('title', 'teaser', 'body') as $field) {
-      if ($_GET['edit'][$field]) {
-        $node[$field] = $_GET['edit'][$field];
-      }
-    }
     $output = node_form($node);
     drupal_set_title(t('Submit %name', array('%name' => node_get_name($node))));
   }
diff --git a/modules/node/node.module b/modules/node/node.module
index 3cd00a5e5dc2..a62f0dbc88d8 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1787,13 +1787,6 @@ function node_add($type) {
     // Initialize settings:
     $node = array('uid' => $user->uid, 'name' => $user->name, 'type' => $type);
 
-    // Allow the following fields to be initialized via $_GET (e.g. for use
-    // with a "blog it" bookmarklet):
-    foreach (array('title', 'teaser', 'body') as $field) {
-      if ($_GET['edit'][$field]) {
-        $node[$field] = $_GET['edit'][$field];
-      }
-    }
     $output = node_form($node);
     drupal_set_title(t('Submit %name', array('%name' => node_get_name($node))));
   }
-- 
GitLab