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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -