From 20397ad3d9dad39670ed92923d2513bd89c7b0bb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 20 May 2001 13:51:40 +0000 Subject: CHANGES - Redid settings.module and even renamed it to conf.module. * Settings are now grouped in basic categories like "system settings", "module settings" and "filters". * Added new settings to make Drupal easier to configure and to make some aspects like the watchdog scale better. - Renamed includes/settings.php to includes/conf.php. - Added filter support to conf.module and introduced filter hooks so modules can implement and export new filters. Example filters are an HTML filter (implemented), a profanity filter, an url converter, ASCII smileys to images filter and so on ... - Reworked the check_* functions: user contributed content/input is only verified and filtered once in its lifespan. NOTES - Altough this is a large commit, no database changes are required. --- includes/node.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'includes/node.inc') diff --git a/includes/node.inc b/includes/node.inc index fcfd26dd7..6d999e25c 100644 --- a/includes/node.inc +++ b/includes/node.inc @@ -183,13 +183,20 @@ function node_control($node) { } $output .= "
\n"; - foreach ($choices as $key => $value) $options .= "\n"; + foreach ($choices as $key => $value) $options .= "\n"; $output .= " \n"; $output .= "
\n"; return $output; } +function node_preview($node) { + foreach ($node as $key=>$value) { + if ($node[$key]) $node[$key] = check_preview($value); + } + return $node; +} + function node_visible($node) { global $user, $status; return ($node->status == $status[posted]) || ($node->status == $status[queued] && $user->id) || user_access($user, $node->type) || user_access($user, "node"); -- cgit v1.2.3