Input formats doesn't work like other modules with exportables. Since filter_formats() cannot be modified, this module cannot implement a cache like imagecache or views does.

When a module that defines an input formats is disabled, the expected behavior should be, remove the input format too.

However, due input formats can introduce security breaks in a site, a good option could be, don't delete the input format when a module is disabled.

So, when an input format is disabled, users should see a message that warning that this input format wasn't removed, and provide a link to delete it manually.

Comments

dagmar’s picture

Only to track this issue:

From #562694-10: Text formats should throw an error and refuse to process if a plugin goes missing

Text formats and filters need to fail when they vanish for any reason. "fail" means to return an empty text instead of skipping a filter.

The same applies to disabling a module that provides a filter, which may be enabled or not (doesn't matter). We will NOT auto-disable any filters upon disabling/uninstalling modules. However, we can and should certainly output a message about text formats that need to be updated (to make them work again).

dagmar’s picture

Status: Active » Fixed

If a module is disabled, default filter will be used. A warning message is displayed in admin/settings/filter in this situations.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.