summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-02-11 20:01:17 +0000
committerDries Buytaert <dries@buytaert.net>2003-02-11 20:01:17 +0000
commite90f3b883b0655ccba009f2fbef982696341a1a2 (patch)
tree0afa31bda8e395e9addfadae4eb62067392abe20 /modules/node/node.module
parent3d3a60740a63e8c803d0905b2727bb202e6de370 (diff)
downloadbrdo-e90f3b883b0655ccba009f2fbef982696341a1a2.tar.gz
brdo-e90f3b883b0655ccba009f2fbef982696341a1a2.tar.bz2
- See http://lists.drupal.org/pipermail/drupal-devel/2003-February/021824.html.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index b8f402984..e3b820c14 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -34,7 +34,7 @@ function node_title_list($result, $title = NULL) {
$items[] = l($node->title, "node/view/$node->nid", array("title" => t("Comments: %number", array("%number" => $number))));
}
- return theme_invoke("theme_item_list", $items, $title);
+ return theme("theme_item_list", $items, $title);
}
function node_teaser($body) {
@@ -385,7 +385,7 @@ function node_search($keys) {
return $find;
}
-function node_conf_options() {
+function node_settings() {
$output .= form_select(t("Number of posts on main page"), "default_nodes_main", variable_get("default_nodes_main", 10), array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30), t("The default maximum number of posts to display on overview pages such as the main page."));
$output .= form_select(t("Length of trimmed posts"), "teaser_length", variable_get("teaser_length", 600), array(0 => t("Unlimited"), 200 => t("200 characters"), 400 => t("400 characters"), 600 => t("600 characters"), 800 => t("800 characters"), 1000 => t("1000 characters"), 1200 => t("1200 characters"), 1400 => t("1400 characters"), 1600 => t("1600 characters"), 1800 => t("1800 characters"), 2000 => t("2000 characters")), t("The maximum number of characters used in the trimmed version of a post. Drupal will use this setting to determine at which offset long posts should be trimmed. The trimmed version of a post is typically used as a teaser when displaying the post on the main page, in XML feeds, etc. To disable teasers, set to 'Unlimited'."));
return $output;
@@ -742,7 +742,7 @@ function node_validate($node, &$error) {
*/
if (isset($node->title) && !$node->title) {
- $error["title"] = theme_invoke("theme_error", t("You have to specify a valid title."));
+ $error["title"] = theme("theme_error", t("You have to specify a valid title."));
}
if (user_access("administer nodes")) {
@@ -775,7 +775,7 @@ function node_validate($node, &$error) {
$node->uid = $account->uid;
}
else {
- $error["name"] = theme_invoke("theme_error", t("The name '%u' does not exist.", array ("%u" => $node->name)));
+ $error["name"] = theme("theme_error", t("The name '%u' does not exist.", array ("%u" => $node->name)));
}
/*
@@ -786,7 +786,7 @@ function node_validate($node, &$error) {
$node->created = strtotime($node->date);
}
else {
- $error["date"] = theme_invoke("theme_error", t("You have to specifiy a valid date."));
+ $error["date"] = theme("theme_error", t("You have to specifiy a valid date."));
}
}