diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-11-18 16:25:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-11-18 16:25:37 +0000 |
commit | b714757857f04ad0efac0725bfeb1cb365b303ef (patch) | |
tree | cf8fbfa53223ddf1f82029bf36f546dd93ac2eb0 /modules/node.module | |
parent | e7e104e82f3def8136c91337a19ce0cc3e451f64 (diff) | |
download | brdo-b714757857f04ad0efac0725bfeb1cb365b303ef.tar.gz brdo-b714757857f04ad0efac0725bfeb1cb365b303ef.tar.bz2 |
- Replaced some (if not all) "Nodes" by more meaningful names/texts.
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/modules/node.module b/modules/node.module index ecbc2dfce..23fde890e 100644 --- a/modules/node.module +++ b/modules/node.module @@ -825,20 +825,34 @@ function node_page() { return; } + /* + ** Try to find a good title: + */ + + if ($type) { + $title = ucfirst(module_invoke($type, "node", "name")); + } + else if ($edit["type"]) { + $title = ucfirst(module_invoke($edit["type"], "node", "name")); + } + else { + $title = t("Submission form"); + } + $theme->header(); switch ($op) { case "add": - $theme->box(t("Node"), node_add($type)); + $theme->box($title, node_add($type)); break; case "edit": - $theme->box(t("Node"), node_edit($id)); + $theme->box($title, node_edit($id)); break; case t("Preview"): - $theme->box(t("Node"), node_preview($edit)); + $theme->box($title, node_preview($edit)); break; case t("Submit"): - $theme->box(t("Node"), node_submit($edit)); + $theme->box($title, node_submit($edit)); break; case t("Delete"): print node_delete($edit); |