drupal 7 - Add token on php page -
i need find user signed on can @ tags. plan write simple php code in page, start current user, find contact , @ tags sql. added token filter , token insert token
[current-user:uid]
is still not replaced.
i have created basic page in drupal added text , token. expected token replaced uid see token.
use following module https://www.drupal.org/project/token_insert. configure field inserting token.
edit :
you need download token_filter module. go token ui configure page link "admin/config/content/formats". on page see different text formats viz (filtered html, full html, plain text), click on configure link in of these options.
example if click on configure filtered html redirected on following link "admin/config/content/formats/filtered_html". on page under enable filters there option says "replace tokens". check , save settings. insert token in editor check view.
Comments
Post a Comment