summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-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);
}