From a10eac3291d14ae9437e8f34229b1fde599e8f64 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 30 Apr 2005 17:47:57 +0000 Subject: - Patch #21517 by Stefan and TDobes: theme system improvements. --- includes/theme.inc | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 16c378dc5..a65f8b713 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -25,20 +25,6 @@ define('MARK_UPDATED', 2); * @} End of "Content markers". */ -/** - * Hook Help - returns theme specific help and information. - * - * @param section defines the @a section of the help to be returned. - * - * @return a string containing the help output. - */ -function theme_help($section) { - switch ($section) { - case 'admin/themes#description': - return t('The base theme'); - } -} - /** * Initialize the theme system by loading the theme. * @@ -395,11 +381,9 @@ function theme_page($content) { $output .= $tabs; } - if ($help = menu_get_active_help()) { - $output .= ''. $help .'
'; - } + $output .= theme('help'); - $output .= theme_status_messages(); + $output .= theme('status_messages'); $output .= "\n\n"; $output .= $content; @@ -488,6 +472,17 @@ function theme_breadcrumb($breadcrumb) { return ''; } +/** + * Return a themed help message. + * + * @return a string containing the helptext for the current page. + */ +function theme_help() { + if ($help = menu_get_active_help()) { + return '
'. $help .'
'; + } +} + /** * Return a themed node. * -- cgit v1.2.3