From a76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 24 Apr 2005 16:34:36 +0000 Subject: - Patch 20910 by chx: centralize print theme page. --- modules/taxonomy/taxonomy.module | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index e4c9cac09..d72be2b6f 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1080,7 +1080,7 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') { $output = taxonomy_render_nodes(taxonomy_select_nodes($tids, $operator, $depth, TRUE)); $output .= theme('xml_icon', url("taxonomy/term/$rss_tids/$depth/feed")); - print theme('page', $output); + return $output; break; case 'feed': @@ -1118,8 +1118,7 @@ function taxonomy_admin() { if (is_numeric(arg(2)) && arg(3) == 'add' && arg(4) == 'term') { if ($op != t('Submit')) { $output = taxonomy_form_term(array('vid' => arg(2))); - print theme('page', $output); - return; + return $output; } else { taxonomy_save_term($edit); @@ -1170,7 +1169,7 @@ function taxonomy_admin() { $output = taxonomy_overview(); } - print theme('page', $output); + return $output; } /** -- cgit v1.2.3