Make "no_flash" text optional

MarcelH - June 2, 2008 - 17:33
Project:SWFObject API
Version:5.x-2.0-alpha1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:by design
Description

Greetings,

I am using SWFObject API in a site where I want to replace the entire content section of the site by a Flash-object (in order to create a text-only version of the site for search engines and for better usability support). Since the Flash-version of the site contains not only the page content but also all navigational items, I do not want to replace just a part of the HTML within #node-xx but an element much higher in the DOM (in my case #wrapper-main containing the content block as well as left/right sidebar).

In cases where the visitor doesn't have Flash enabled (or in case of a search engine) I want to display the entire body HTML as alternative text and do not need SWFObject API to display "Sorry, you need to install flash to see this content". Therefore I have commented out the "return $html" at the end of the module.

Maybe it is a good option to make the "no_flash" alternative optional?

Greetings,

Marcel

#1

arthurf - December 31, 2008 - 21:40
Status:active» by design

You can actually just in $params['no_flash'] =''; which will override the default display.

 
 

Drupal is a registered trademark of Dries Buytaert.