From 3b70f0015f27f325036a708772fadbe381fe788f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 13 Mar 2005 21:04:43 +0000 Subject: - Patch #18787 by nysus: when trying to delete a forum or container, multiple instances of a Drupal page appear nested inside of each other when the confirmation of deletion page is displayed. --- modules/forum.module | 6 +++--- modules/forum/forum.module | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/forum.module b/modules/forum.module index 23078fdc6..96d18a785 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -85,7 +85,7 @@ function forum_admin() { break; case t('Delete'): if (!$edit['confirm']) { - $output = _forum_confirm_del($edit['tid']); + $output = _forum_confirm_delete($edit['tid']); break; } else { @@ -125,7 +125,7 @@ function forum_taxonomy($op, $type, $object) { * * @param $tid ID of the term to be deleted */ -function _forum_confirm_del($tid) { +function _forum_confirm_delete($tid) { $term = taxonomy_get_term($tid); $extra = form_hidden('tid', $tid); @@ -136,7 +136,7 @@ function _forum_confirm_del($tid) { t('Delete'), t('Cancel'), $extra); - print theme('page', $output); + return $output; } /** diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 23078fdc6..96d18a785 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -85,7 +85,7 @@ function forum_admin() { break; case t('Delete'): if (!$edit['confirm']) { - $output = _forum_confirm_del($edit['tid']); + $output = _forum_confirm_delete($edit['tid']); break; } else { @@ -125,7 +125,7 @@ function forum_taxonomy($op, $type, $object) { * * @param $tid ID of the term to be deleted */ -function _forum_confirm_del($tid) { +function _forum_confirm_delete($tid) { $term = taxonomy_get_term($tid); $extra = form_hidden('tid', $tid); @@ -136,7 +136,7 @@ function _forum_confirm_del($tid) { t('Delete'), t('Cancel'), $extra); - print theme('page', $output); + return $output; } /** -- cgit v1.2.3