Page 1 of 1

Calling a module's function in a template

Posted: Sun Mar 30, 2014 5:44 pm
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...

Re: Calling a module's function in a template

Posted: Sun Mar 30, 2014 7:46 pm
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...

Re: Calling a module's function in a template

Posted: Sun Mar 30, 2014 9:27 pm
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.

Re: Calling a module's function in a template

Posted: Mon Mar 31, 2014 1:36 pm
by Doodeen
Thanks for the answers ... I'd better start a new topic.=)