summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-08-12 20:37:16 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-08-12 20:37:16 +0000
commit48805032c8bbcf45f65687c592438e2cc960ece8 (patch)
tree523ad4aaaaaf410d9a59db86284f036629396f4a /modules/node/node.module
parentc6b215c057406f5a6d112133f995c08d80c3060a (diff)
downloadbrdo-48805032c8bbcf45f65687c592438e2cc960ece8.tar.gz
brdo-48805032c8bbcf45f65687c592438e2cc960ece8.tar.bz2
- Applied modified version of almaw's 0064 patch: form item attributes.
- Applied modified version of mathias' 0073 patch: node form name. $params["options"] is now an array so some contrib modules might need minor changes. - Applied mathhias' 0074 patch: missing access check on who is new block.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 91516c0a2..e87cbff53 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -360,7 +360,6 @@ function node_save($node) {
function node_view($node, $main = 0) {
-
$node = array2object($node);
/*
@@ -1259,7 +1258,7 @@ function node_form($edit, $error = NULL) {
$output .= "</div></div>";
- return form($output, ($param["method"] ? $param["method"] : "post"), $param["action"], $param["options"]);
+ return form($output, ($param["method"] ? $param["method"] : "post"), $param["action"], array_merge($param["options"], array("id" => "node-form")));
}
function node_add($type) {