Skip to content
Snippets Groups Projects
Commit 51dc073b authored by Angie Byron's avatar Angie Byron
Browse files

#609118 folllow-up by plach: Fixed node.tokens.inc: node body issues.

parent e11daebd
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -139,13 +139,13 @@ function node_tokens($type, $tokens, array $data = array(), array $options = arr
case 'body':
if (!empty($node->body)) {
$replacements[$original] = $sanitize ? $node->body[LANGUAGE_NONE][0]['safe'] : $node->body[LANGUAGE_NONE][0]['value'];
$replacements[$original] = $sanitize ? $node->body[$node->language][0]['safe'] : $node->body[$node->language][0]['value'];
}
break;
case 'summary':
if (!empty($node->body)) {
$replacements[$original] = $sanitize ? $node->body[LANGUAGE_NONE][0]['safe_summary'] : $node->body[LANGUAGE_NONE][0]['summary'];
$replacements[$original] = $sanitize ? $node->body[$node->language][0]['safe_summary'] : $node->body[$node->language][0]['summary'];
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment