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. --- modules/node/node.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 398404aee..d337687ad 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -727,7 +727,7 @@ function node_validate($node, &$error) { */ if (isset($node->title) && !$node->title) { - $error["title"] = "
". t("You have to specify a valid title.") ."
"; + $error["title"] = theme_invoke("theme_error", t("You have to specify a valid title.")); } if (user_access("administer nodes")) { @@ -760,7 +760,7 @@ function node_validate($node, &$error) { $node->uid = $account->uid; } else { - $error["name"] = "
". t("The name '%u' does not exist.", array ("%u" => $node->name)) ."
"; + $error["name"] = theme_invoke("theme_error", t("The name '%u' does not exist.", array ("%u" => $node->name))); } /* @@ -771,7 +771,7 @@ function node_validate($node, &$error) { $node->created = strtotime($node->date); } else { - $error["date"] = "
". t("You have to specifiy a valid date.") ."
"; + $error["date"] = theme_invoke("theme_error", t("You have to specifiy a valid date.")); } } @@ -933,7 +933,7 @@ function node_add($type) { if ($edit[$field]) { $node[$field] = check_input($edit[$field]); } - } + } $output = node_form($node); } else { -- cgit v1.2.3