d12-moodle-shortcodes/filter.php
2017-12-18 21:12:29 -05:00

12 lines
251 B
PHP
Executable File

<?php
class filter_d12shortcodes extends moodle_text_filter {
public function filter($text, array $options = array()) {
return str_replace(
array('[wi]', '[/wi]'),
array('<div class="wi">', '</div>'),
$text
);
}
}