I am creating a simple module that will display a form field, or not, based on a settings file managed from the modules page in admin. Basically an on/off toggle of a form field. I would like to be able to test if this setting has been set and only display it's associated form field if it has been set.
If I look at register.tpl I see a block that looks like:
{IF ERROR}
<div class="PhorumUserError">{ERROR}</div>
{/IF}
I would like to do something like this (pseudo-code):
{IF my_mod form field is true}
{HOOK tpl_my_mod_field_hook}
{/IF}
I've tried different variations of the above but am obvious not understanding something.
What is the correct way to check if the value has been set in a template and display my field?
Thanks!
-ken