summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-03-10 21:20:26 -0400
committerDavid Rothstein <drothstein@gmail.com>2013-03-10 21:20:26 -0400
commit6bcb0a3b9126f9a5f7c1fae5260d22ef388e6fdb (patch)
tree525afabd34f7d5af8648792b5b55e80045de11c9 /modules/node
parentd5be55f2c3c02a5b54dd090be12f3d72914a3dac (diff)
downloadbrdo-6bcb0a3b9126f9a5f7c1fae5260d22ef388e6fdb.tar.gz
brdo-6bcb0a3b9126f9a5f7c1fae5260d22ef388e6fdb.tar.bz2
Issue #1886870 by IRuslan: Fixed Useless node_type_get_type() call in node_validate().
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.'));
}