Calling a module's function in a template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Doodeen
Forum Members
Forum Members
Posts: 11
Joined: Fri Mar 14, 2014 12:51 am

Calling a module's function in a template

Post by Doodeen »

is it possible to call a function declared in a file MODULENAME.module.php, from a template?
I am a newbie, sorry for the stupid questions...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Calling a module's function in a template

Post by Dr.CSS »

You are going to have to give a better explanation as to what you are trying to do and what you expect as an outcome...
Stikki

Re: Calling a module's function in a template

Post by Stikki »

Module developer declares module as plugin module if they wish.

If module is declared as plugin module, you can use it like that.

ie.

{News}

You can't directly call class methods in tag context. Module declares which actions are usable and what params it takes.
Doodeen
Forum Members
Forum Members
Posts: 11
Joined: Fri Mar 14, 2014 12:51 am

Re: Calling a module's function in a template

Post by Doodeen »

Thanks for the answers ... I'd better start a new topic.=)
Post Reply

Return to “Modules/Add-Ons”