From ee8aa910b9db2f90bfb46ba852eaa349343d5e04 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 21 Sep 2009 06:44:14 +0000 Subject: Patch #579366 by sun, litwol | chx, Dries: simplified form API redirection handling. I can actually understand it now. ;-). --- modules/taxonomy/taxonomy.admin.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'modules/taxonomy') diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc index ee32be4b0..b7cd4aba6 100644 --- a/modules/taxonomy/taxonomy.admin.inc +++ b/modules/taxonomy/taxonomy.admin.inc @@ -469,10 +469,7 @@ function taxonomy_overview_terms($form, &$form_state, $vocabulary) { '#type' => 'submit', '#value' => t('Reset to alphabetical') ); - $form['destination'] = array( - '#type' => 'hidden', - '#value' => $_GET['q'] . (isset($_GET['page']) ? '?page=' . $_GET['page'] : '') - ); + $form_state['redirect'] = array($_GET['q'], (isset($_GET['page']) ? array('page' => $_GET['page']) : '')); } return $form; @@ -780,7 +777,7 @@ function taxonomy_form_term($form, &$form_state, $vocabulary, $edit = array()) { '#value' => $edit['tid']); } else { - $form['destination'] = array('#type' => 'hidden', '#value' => $_GET['q']); + $form_state['redirect'] = $_GET['q']; } return $form; -- cgit v1.2.3