Hi,
I did a simple edit at function theme_swfaddress_swfobject from SWFAddress module, to be able to pass the drupal language site as a flashvar for my flex application using modular resource bundles:
global $language;
swfobject.embedSWF("%s%s", "%s", "%s", "%s", "%s", false, {localeChain: $language->language}, {bgcolor: "#%s" , allowFullScreen: "true"}, {id: "%s", name: "%s"});
But i always get the same value, despite the url with other language (eg "carvalhar.com" and "carvalhar.com/fr" has the same null $language->language value).
So...how can i retrieve the language value from drupal and set it in this fucntion? other modules uses as this example, but maybe because it's a theme hook the language is called before it's setted (not sure).
any suggestions?
thanks in advance.
Carlos
Comments
Comment #1
carvalhar commentedhey,
i noticed a really odd thing:
this module has two calls for "theme_swfaddress_swfobject", one when the urls is accesed (eg.: carvalhar.com/fr) and the other one when it is retyped by swfaddress (eg: carvalhar.com/#/fr) so...
what is happening? why do i have two calls (one after another) for the same function?
how to disable it?
thanks
Comment #2
bmcmurray commentedChecking out your site now, it appears that you have accounted for this or fixed it on your own, so I'm going to mark this as closed.
Comment #3
bmcmurray commentedjust closing this out, apparently marking status -> closed didn't take.