Index: modules/swfobject_api/swfobject_api.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/swfobject_api/swfobject_api.module,v
retrieving revision 1.2
diff -u -r1.2 swfobject_api.module
--- modules/swfobject_api/swfobject_api.module	25 Jan 2007 17:38:38 -0000	1.2
+++ modules/swfobject_api/swfobject_api.module	17 Mar 2007 12:34:57 -0000
@@ -69,7 +69,7 @@
 /*
  * Implementation of theme
  */
-function theme_swfobject_api($url, $params){
+function theme_swfobject_api($url, $params, $flashvars=null){
   $width = $params['width'] ? $params['width'] : "100%" ;
   $height = $params['height'] ? $params['height'] : "100%" ;
   $message = $params['no_flash'] ? $params['no_flash'] : t('Sorry, you need to install flash to see this content.');
@@ -82,10 +82,15 @@
   if ($params) {
     foreach ($params as $key => $value) {
       if (($key != "width") && ($key != "height") && ($key != "no_flash")) {
-        $html .= " so.addParam('$key', '$value'); \n";
+        $html .= " so.addParam(\"$key\", \"$value\"); \n";
       }
     }
   }
+  if ($flashvars) {
+    foreach ($flashvars as $key => $value) {
+      $html .= " so.addVariable(\"$key\", \"$value\"); \n";
+    }
+  }
   $html .= " so.write('flashcontent_". $name . "'); \n</script>";
 
  return $html;
