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.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
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!