diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-04-30 17:47:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-04-30 17:47:57 +0000 |
commit | a10eac3291d14ae9437e8f34229b1fde599e8f64 (patch) | |
tree | f9e4788603c739039e4248364fd2489a31a5d5c9 /includes | |
parent | 8bedd376febd795188206ce37eaf0e24cc116aa1 (diff) | |
download | brdo-a10eac3291d14ae9437e8f34229b1fde599e8f64.tar.gz brdo-a10eac3291d14ae9437e8f34229b1fde599e8f64.tar.bz2 |
- Patch #21517 by Stefan and TDobes: theme system improvements.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 16c378dc5..a65f8b713 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -26,20 +26,6 @@ define('MARK_UPDATED', 2); */ /** - * 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. * * @return @@ -395,11 +381,9 @@ function theme_page($content) { $output .= $tabs; } - if ($help = menu_get_active_help()) { - $output .= '<small>'. $help .'</small><hr />'; - } + $output .= theme('help'); - $output .= theme_status_messages(); + $output .= theme('status_messages'); $output .= "\n<!-- begin content -->\n"; $output .= $content; @@ -489,6 +473,17 @@ function theme_breadcrumb($breadcrumb) { } /** + * 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 '<div class="help">'. $help .'</div>'; + } +} + +/** * Return a themed node. * * @param $node |