#93425 by bjaspan: remove pre-Drupal 4.6 era destination handling cruft carried over in comment module

5.x
Neil Drumm 2007-11-07 08:03:30 +00:00
parent 0bd3fd1abb
commit 5f8bab87e1
1 changed files with 0 additions and 4 deletions

View File

@ -1566,10 +1566,6 @@ function comment_form($edit, $title = NULL) {
$form['#after_build'] = array('comment_form_add_preview');
}
if ($_REQUEST['destination']) {
$form['#attributes']['destination'] = $_REQUEST['destination'];
}
if (empty($edit['cid']) && empty($edit['pid'])) {
$form['#action'] = url('comment/reply/'. $edit['nid']);
}