I tried to create a custom node token:
Machine name: test
Type: node
PHP-Code:
dpm($data);
dpm('Hello World');
return 'test';
Test:
$node = node_load(123);
$text = '[node:test]';
$result = token_replace($text, array('node' => $node));
This always prints me "Hello World" and never the contents of $data. I also can't access $data['node'] directly - thous it's not available.
Tested with dev and current release.
Any ideas?
Closed: outdated
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.