Jump to content

Use Vars on Hooks


Recommended Posts


how we can use Template Vars in Hooks?



For Example:


"fields" => array("option1" => array ("FriendlyName" => "test", "Type" => "text", "Size" => "25", "Description" => "test", "Default" => "test", )



How we can call the option1 inside hooks functions?




Link to comment
Share on other sites

Action hooks are meant to let you use only certain variables that are stored in $vars. If you want to use a template var you have to retreive it with a query. Basically a template var comes from php file and in this file there's a query to database. Simply use a query and get the variables you want.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated