function _viewfield_migrate_legacy_tokens in Viewfield 7.3
Same name and namespace in other branches
- 7.2 viewfield.module \_viewfield_migrate_legacy_tokens()
Substitute core tokens for legacy tokens (%nid, %author, %viewer) in text.
2 calls to _viewfield_migrate_legacy_tokens()
File
- ./
viewfield.module, line 619 - Defines a field type to display a view.
Code
function _viewfield_migrate_legacy_tokens($text) {
return strtr($text, array(
'%nid' => '[node:nid]',
'%author' => '[node:author]',
'%viewer' => '[current-user:uid]',
));
}