Add vim modelines to all files.
[htmlpurifier/bfroehle.git] / library / HTMLPurifier / AttrTransform / SafeObject.php
blob1ed74898bae41dbe0102ff8065a355fd016227a7
1 <?php
3 /**
4 * Writes default type for all objects. Currently only supports flash.
5 */
6 class HTMLPurifier_AttrTransform_SafeObject extends HTMLPurifier_AttrTransform
8 public $name = "SafeObject";
10 function transform($attr, $config, $context) {
11 if (!isset($attr['type'])) $attr['type'] = 'application/x-shockwave-flash';
12 return $attr;
16 // vim: et sw=4 sts=4