The recent update to add Token support has a typo in the committed code.
The array is $vars but is called as $var (missing an s) in the current branches (release and dev).

This exists in two places. Lines 698 & 735

Current Code (broken):
if (module_exists('token') && isset($var[$object])) {

Fixed Code:
if (module_exists('token') && isset($vars[$object])) {

Reference these tickets:
https://www.drupal.org/node/2376377
https://www.drupal.org/node/2476357
D8: https://www.drupal.org/node/2288345

CommentFileSizeAuthor
#2 token-support-typo-2493145-2.patch1.08 KBartis
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

artis’s picture

artis’s picture

Patch is attached.

aspilicious’s picture

Status: Active » Fixed

:s Thnx!

  • aspilicious committed 4418c89 on 7.x-2.x authored by artis
    Issue #2493145 by artis: Typo in recent commit for Token support in 7.x-...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.