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

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -