From ede019296e845a88172d7542c7e50dd7448e0cb4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 19 Dec 2006 20:14:26 +0000 Subject: [PATCH] - Patch #104280 by dww: node_form_add_preview() broken if you alter the Preview button at all. --- modules/node/node.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/node/node.module b/modules/node/node.module index 0a1aefbfd3b..fbc9d4357a9 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -2045,7 +2045,7 @@ function node_form_add_preview($form) { global $form_values; $op = isset($form_values['op']) ? $form_values['op'] : ''; - if ($op == $form_values['preview']) { + if ($op == t('Preview')) { drupal_validate_form($form['form_id']['#value'], $form); if (!form_get_errors()) { // We pass the global $form_values here to preserve changes made during form validation