ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ScriptRequired.php
Go to the documentation of this file.
1<?php
2
7{
14 public function transform($attr, $config, $context)
15 {
16 if (!isset($attr['type'])) {
17 $attr['type'] = 'text/javascript';
18 }
19 return $attr;
20 }
21}
22
23// vim: et sw=4 sts=4
Implements required attribute stipulation for <script>
Processes an entire attribute array for corrections needing multiple values.