summaryrefslogtreecommitdiff
path: root/modules/node
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 /modules/node
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 'modules/node')
-rw-r--r--modules/node/node.module8
1 files changed, 4 insertions, 4 deletions
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"] = "<div style=\"color: red;\">". t("You have to specify a valid title.") ."</div>";
+ $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"] = "<div style=\"color: red;\">". t("The name '%u' does not exist.", array ("%u" => $node->name)) ."</div>";
+ $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"] = "<div style=\"color: red;\">". t("You have to specifiy a valid date.") ."</div>";
+ $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 {