From 66c5b70736553b2c84eb8835e7b4c3ad7c34c8f8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 22 Oct 2002 18:46:43 +0000 Subject: - Wrapped some hardcoded colors in "theme_invoke()"s; we can still create a drupal_error() later on but I think we better get used to theme_invoke(). - Fixed translation bug. Patch by Moshe. - Fixed PHP warning. Patch by ax. --- includes/theme.inc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 108347da7..62239da12 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -75,6 +75,21 @@ class BaseTheme { } +function theme_mark() { + /* + ** Return a marker. Used to indicate new comments or required form + ** fields. + */ + return "*"; +} + +function theme_error($message) { + /* + ** Return an error message. + */ + return "
$message
"; +} + function theme_list() { static $list; @@ -125,12 +140,12 @@ function theme_blocks($region, &$theme) { function theme_invoke() { global $theme; $args = func_get_args(); - + $function = array_shift($args); if (method_exists($theme, $function)) { return call_user_method_array($function, $theme, $args); - } + } else { return call_user_func_array($function, $args); } -- cgit v1.2.3