Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I wrote this module for a client who had a specific need. basically, he wanted the *user* to be able to choose whether or not the audio should auto-play.
I managed to get this implemented, and I'm attaching the code to see if you think there's any global usefulness to this module, or if any other people want to take it and play with it.
Ideally, it could be either genericized to work with any player, or at least extended to work with multiple players.
Comment | File | Size | Author |
---|---|---|---|
#2 | swftools_user_autoplay.zip | 2.73 KB | chrisfromredfin |
swftools_user_autoplay.tar_.gz | 1.85 KB | chrisfromredfin |
Comments
Comment #1
chrisfromredfinNOTE: the SWFTools cache (on admin/settings/performance) must be DISABLED for this module to work, because we need the preprocessor to run every time.
Comment #2
chrisfromredfinA better version. The above has some shortcomings in the _get function in case there are multiple Session variables on the $user, and also this wouldn't work because of the input filter cache, so I had to make a new filter.