Generico Filter icon

Generico Filter

Maintained by Justin Hunt
Generico is a simple filter for creating templates of code snippets and text that can be inserted into Moodle text areas.
Price option: Free

Supports Moodle 2.1-5.2 See all versions
Latest release: 9 months ago
Installations: 2564
Downloads (last 90 days): 558

Frankenstyle name: filter_generico
Filters

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Thanks David. That is good news. I will make those changes soon. Nice to get the feedback. Keep up the good work.
Thanks Justin for contributing this interesting filter. I can imagine there are situations when it can come as really handy tool. I
am going to approve it now.
While reviewing the code, I spotted that the function generico_fetch_filter_properties() violates the frankenstyle naming
convention. It should start with filter_generico_ prefix. Also, I think that at the top of the filter_generico::filter() there could
be check added for passed empty string. I would personally perform a simple strpos() test for the {GENERICO: substring there too.
The strpos() is pretty quick and it would save PHP from executing preg_replace_callback() that often.
There is a comment in filter_generico_callback() that refers to poodllresourcelib. I suspect that was just left after a copy/paste
from another plugin?
You may want to address these comments in a future version of your code. Said that, you are cleared to land now - welcome to plugins
directory!