summaryrefslogtreecommitdiff
path: root/modules/page.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-08-30 15:22:29 +0000
committerDries Buytaert <dries@buytaert.net>2005-08-30 15:22:29 +0000
commitd9d6a6e05c7a3c9d55e0e143e23489d7ed64be4b (patch)
tree71f531bfe2bc3663ecca9138475ae5c34fd72f82 /modules/page.module
parent7e5d0c947a23c0931614b167b7107c97cdd82136 (diff)
downloadbrdo-d9d6a6e05c7a3c9d55e0e143e23489d7ed64be4b.tar.gz
brdo-d9d6a6e05c7a3c9d55e0e143e23489d7ed64be4b.tar.bz2
- Patch #7582 by Gerhard: improved node revisions!
All node revisions were stored in a serialized field in the node table and retrieved for _each_ page view although they are rarely needed. We created a separate revisions table which would be in principle identical to the node table, only that it could have several old copies of the same node. This also allows us to revision-related information, and to provide log entries to non-book pages when a new revision is being created. TODO: 1. Provide upgrade instructions for node module maintainers! 2. Upgrade modules that implement node types. 3. Provide an upgarde path for revisions. Dependency on the upgrade system.
Diffstat (limited to 'modules/page.module')
-rw-r--r--modules/page.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/page.module b/modules/page.module
index 38e3d6680..638e4de99 100644
--- a/modules/page.module
+++ b/modules/page.module
@@ -74,6 +74,8 @@ function page_form(&$node) {
$output .= form_textarea(t('Body'), 'body', $node->body, 60, 20, '', NULL, TRUE);
$output .= filter_form('format', $node->format);
+ $output .= form_textarea(t('Log message'), 'log', $node->log, 60, 5, t('An explanation of the additions or updates being made to help other authors understand your motivations.'));
+
return $output;
}