#54519, remove old bookmarklet code. Use prepopulate.module, patch by budda
parent
02ad2cfea2
commit
f005101afd
|
@ -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))));
|
||||
}
|
||||
|
|
|
@ -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))));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue