We recently had a site where the 'messaging plain text' input format was deleted. In addition to being confusing to solve, this gave e-mails bad formatting until we figured out how to solve the problem.

So, here's a patch to make it harder to delete this input format.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greggles’s picture

Status: Active » Needs review
FileSize
1.33 KB

Patch is against an svn repository based on 6.x-2.2 version but also applies to CVS 6.x-2.x branch.

And I forgot - I did two things to 'fix' this after we deleted it but I'm not sure that the variable_set is really necessary.

  1. Recreate the messaging plain text input format. Name "Messaging plain text" and enable the "HTML to text" filter only. Grant this to none of the roles. Once it is saved, figure out the filter ID by clicking configure and looking in the URL. The Filter ID is the number in the URL.
  2. Create a variable using that filter ID. My filter ID was 8 so I created the variable using drush eval: drush eval "variable_set('messaging_default_filter', 8);"
  3. On http://example.com/admin/messaging/settings/method select the newly created "Messaging plain text" filter as the message body filter for mail.