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 have created a small patch for enabling insert functionality on swftools content. The new functionality includes one new insert style, called "swfmedia" and labelled "swf media", and inserts the swftools tag, [swf file= "{filename}"], to the content wysiwyg.
The patch adds 2 news files to the module:
* includes/swftools.inc
* templates/swftools-insert-media.tpl.php
Modifications to the insert.module file are simply to include the 2 new files, in functions insert_init() and insert_theme().
Pretty simple stuff, but still might be useful to some.
Comment | File | Size | Author |
---|---|---|---|
#1 | insert-swftools.patch | 2.47 KB | iwayMan |
Comments
Comment #1
iwayMan CreditAttribution: iwayMan commentedAnd here is the patch...
Comment #2
lolmaus CreditAttribution: lolmaus commentedWorked for me in Insert 6.x-1.0-beta4.
Thanks iwayMan!
Comment #3
quicksketchMy preference would be to include this in SWFTools rather than Insert. Insert is designed to include only the modules that have been moved to core by default (FileField, ImageField, and ImageCache). As you've noticed, all of the functions are actually scoped so that they could be included directly in the module that provides the content. I'm not a big fan of using tokens instead of the actual HTML code, but with SWFTools I definitely understand why you'd want an input filter instead.
I'll move this over to the SWFTools queue and see what they think over there.
Comment #4
lolmaus CreditAttribution: lolmaus commentedHey quicksketch, nobody here seems to bother. :( Could you please include the patch?
Comment #5
capsicumpie CreditAttribution: capsicumpie commentedsubscribe