summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-08 13:11:33 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-08 13:11:33 +0000
commit7a972daeab5a9a4aa2253ef10acc8a2b5c754cab (patch)
tree890008a8ece29aa54c8096ab7531c0d90dd2bb01 /modules/book.module
parent6f4d9d56d5ee8bfd31c4453bbbe1d6379b611353 (diff)
downloadbrdo-7a972daeab5a9a4aa2253ef10acc8a2b5c754cab.tar.gz
brdo-7a972daeab5a9a4aa2253ef10acc8a2b5c754cab.tar.bz2
- node system:
+ made a small change in the node overview page in the admin section such that it lists both new and updated pages by default. + reworked the filter-mechanism: it is not 100% finished yet but it sure is taking shape.
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/book.module b/modules/book.module
index 80f9fa50c..30d50d8d7 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -310,8 +310,13 @@ function book_body($node) {
** Make sure only authorized users can preview PHP pages.
*/
- if ($op == t("Preview") && !user_access("adminster nodes")) {
- return;
+ if ($op == t("Preview")) {
+ if (user_access("adminster nodes")) {
+ $node->body = stripslashes($node->body); // see also book_form()
+ }
+ else {
+ return;
+ }
}
ob_start();