summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-10-22 18:46:43 +0000
committerDries Buytaert <dries@buytaert.net>2002-10-22 18:46:43 +0000
commit66c5b70736553b2c84eb8835e7b4c3ad7c34c8f8 (patch)
tree605fc52b5bd8fa8e2411dee975e34c2e83276595 /includes
parent88d6ef3a2ad99a0872b00f40e84c083b098ad21c (diff)
downloadbrdo-66c5b70736553b2c84eb8835e7b4c3ad7c34c8f8.tar.gz
brdo-66c5b70736553b2c84eb8835e7b4c3ad7c34c8f8.tar.bz2
- 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.
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc19
1 files changed, 17 insertions, 2 deletions
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 "<span style=\"color: red;\">*</span>";
+}
+
+function theme_error($message) {
+ /*
+ ** Return an error message.
+ */
+ return "<div style=\"color: red;\">$message</div>";
+}
+
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);
}