Commit 6bcb0a3b authored by David_Rothstein's avatar David_Rothstein

Issue #1886870 by IRuslan: Fixed Useless node_type_get_type() call in node_validate().

parent d5be55f2
......@@ -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.'));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment