passing drupal $language as flashvar (is it a bug?)

carvalhar - April 2, 2009 - 17:33
Project:SWFAddress
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:minor
Assigned:Unassigned
Status:won't fix
Description

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

#1

carvalhar - April 2, 2009 - 17:59
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

#2

bmcmurray - November 10, 2009 - 22:57
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.

#3

bmcmurray - November 10, 2009 - 22:59
Status:active» won't fix

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

 
 

Drupal is a registered trademark of Dries Buytaert.