summaryrefslogtreecommitdiff
path: root/modules/node/node.pages.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-09-27 20:37:01 +0000
committerDries Buytaert <dries@buytaert.net>2008-09-27 20:37:01 +0000
commit9f3d9f11158aec709dac7d67b99ff6fd8c2c634d (patch)
tree68fc762cb0dd1bdb7b86483c4e12be6aa69dcabc /modules/node/node.pages.inc
parent0d84b9184948372469480fa32daab66d37c95df6 (diff)
downloadbrdo-9f3d9f11158aec709dac7d67b99ff6fd8c2c634d.tar.gz
brdo-9f3d9f11158aec709dac7d67b99ff6fd8c2c634d.tar.bz2
- Patch #161301 by Eaton, Sun, moshe and webchick: make checking for node edit forms easier. DX improvement.
Diffstat (limited to 'modules/node/node.pages.inc')
-rw-r--r--modules/node/node.pages.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc
index 6f48a74ab..1194e320f 100644
--- a/modules/node/node.pages.inc
+++ b/modules/node/node.pages.inc
@@ -117,8 +117,9 @@ function node_form(&$form_state, $node) {
$node->build_mode = NODE_BUILD_PREVIEW;
}
- // Set the id of the top-level form tag
+ // Set the id and identify this as a node edit form.
$form['#id'] = 'node-form';
+ $form['#node_edit_form'] = TRUE;
// Basic node information.
// These elements are just values so they are not even sent to the client.