Consider an input format that uses only a single filter. Suppose you uninstall the module that provides this one filter. The input format will be left with no filters.

The input format should be automatically deleted.

Comments

johanneshahn’s picture

anybody move this to feature request please?

ergonlogic’s picture

Version: 6.1 » 8.x-dev
Category: bug » feature

This came up in bug bingo...

I'm not certain this is actually a good idea, but bumping it so someone with deeper knowledge of input formats can comment, or mark as "closed (works as designed)".

David_Rothstein’s picture

Title: Uninstalling module should also delete input formats » Uninstalling a module should also delete text formats
Component: install system » filter.module
Status: Active » Closed (works as designed)

Yup, agreed.

A text format (a.k.a. input format) with no filters is a completely reasonable (and actually sometimes quite useful!) configuration, so I don't think this makes sense. Not to mention that deleting/disabling a text format is a pretty scary operation that should not be done lightly; it can wreak havoc with the display of your site's content, etc.

If anyone's interested in the general issue of what happens when a module that provides a filter is turned off, though, see #562694: Text formats should throw an error and refuse to process if a plugin goes missing.

d_l’s picture

As an example .. I was testing migrate module (in drupal 7.8), decided to uninstall, and I'm now left with a redundant "Migrate example format" text format which I don't see how I can delete. Do I have to look into the DB or drush to remove this?

Postscript: I inspected the database and I saw that it was cluttered with different tables (including migrate text filter) created by migrate module. To the extent that I have decided to upgrade to drupal 7.9 (core only) and created a fresh database with drupal core only as a starting base. I'll now be more careful in testing modules which appear not to fully uninstall.