#54519, remove old bookmarklet code. Use prepopulate.module, patch by budda

4.7.x
Gerhard Killesreiter 2006-03-24 14:59:06 +00:00
parent 02ad2cfea2
commit f005101afd
2 changed files with 0 additions and 14 deletions

View File

@ -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))));
}

View File

@ -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))));
}