Plugin modules' filter api

Plugin modules' filter api

Itamar Tzadok發表於
Number of replies: 2
Could someone please clarify how the new filter api is supposed to work for filters in contributed module plugins? (see upgrade note below for reference)
 
Surely filters of contributed modules are not expected to relocate to /filter/xxxx. Would mod/my_module/filter.php continue to work in 2.3? But then shouldn't filters of contributed modules be subplugins of the module for consistency and flexibility (ie mod/my_module/filter/xxxx) ?
 
微笑

=== 2.2 ===

 
* legacy filters and legacy locations have been deprecated, so any
  old filter should be updated to use the new moodle_text_filter,
  and any filter bundled under mod/xxxx directories be moved to
  /filter/xxxx (MDL-29995). They will stop working completely in
  Moodle 2.3 (MDL-29996). See the glossary or data filters for
  examples of legacy module filters and locations already updated.
評比平均分數: -
In reply to Itamar Tzadok

Re: Plugin modules' filter api

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

Moving your filter code into /filter is exactly what you are expected to do. Note that there is now a filter/glossary in moodle 2.2.

You can use the $plugin->dependencies part of http://docs.moodle.org/dev/version.php to declare that the filter requires the mod to be installed.