summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.module2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index abcd4e0c5..533365b30 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1013,8 +1013,6 @@ function node_object_prepare($node) {
* Performs validation checks on the given node.
*/
function node_validate($node, $form, &$form_state) {
- $type = node_type_get_type($node);
-
if (isset($node->nid) && (node_last_changed($node->nid) > $node->changed)) {
form_set_error('changed', t('The content on this page has either been modified by another user, or you have already submitted modifications using this form. As a result, your changes cannot be saved.'));
}