summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2011-11-23 10:46:02 (GMT)
committer Gábor Hojtsy2011-11-23 10:46:02 (GMT)
commit46b7b555ab6c86503babd69ca1d1846e49436331 (patch)
treed4e6f6df868988553aaf0c7430a961fb8e70811f
parent3905244d677900115901948bcfbc089079d7f524 (diff)
Issue #1225364 by sivaji, ñull: body field label is configurable but hardcoded in min word count validation error message
-rw-r--r--modules/node/node.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 0de03ff..4cc6bdf 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -794,7 +794,7 @@ function node_validate($node, $form = array()) {
// Make sure the body has the minimum number of words.
// TODO : use a better word counting algorithm that will work in other languages
if (!empty($type->min_word_count) && isset($node->body) && count(explode(' ', $node->body)) < $type->min_word_count) {
- form_set_error('body', t('The body of your @type is too short. You need at least %words words.', array('%words' => $type->min_word_count, '@type' => $type->name)));
+ form_set_error('body', t('The @body_label of your @type is too short. You need at least %words words.', array('@body_label' => $type->body_label, '@type' => $type->name, '%words' => $type->min_word_count)));
}
if (isset($node->nid) && (node_last_changed($node->nid) > $node->changed)) {