access api module from contemplate
Hi everybody, i´m trying to access to a module api (specifically the currency module: http://drupal.org/project/currency) The problem is that i´m trying to access to the currency_exchange() function from the content template for a type of content (the producto one). Is it possible? Any suggestion to do this? thanks a lot in advance. -- Alejandro Moreno López Publicidad en Buscadores y Marketing Online http://www.tdo.es
ok, i´ve found a solution. I´ve created a module which calls the api function and stores the value in a global parameter (say, $euroPrice). Then from contemplate i declare global $euroPrice; and printing the value seems to work. Anyway, I suppose that it must exists a better way to do this. On 10/01/2008, Alex Moreno <al3xmor3no@gmail.com> wrote:
Hi everybody,
i´m trying to access to a module api (specifically the currency module: http://drupal.org/project/currency)
The problem is that i´m trying to access to the currency_exchange() function from the content template for a type of content (the producto one). Is it possible? Any suggestion to do this?
thanks a lot in advance.
-- Alejandro Moreno López Publicidad en Buscadores y Marketing Online http://www.tdo.es
-- Alejandro Moreno López Publicidad en Buscadores y Marketing Online http://www.tdo.es
participants (1)
-
Alex Moreno