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

carvalhar’s picture

Title: passing drupal $language as flashvar » passing drupal $language as flashvar (is it a bug?)
Priority: Normal » Critical

hey,

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

bmcmurray’s picture

Priority: Critical » Minor

Checking 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.

bmcmurray’s picture

Status: Active » Closed (won't fix)

just closing this out, apparently marking status -> closed didn't take.