Add helper function for removing an input format

webchick - May 25, 2009 - 21:54
Project:Install Profile API
Version:6.x-2.x-dev
Component:CRUD functions and includes
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Issue tags:DruBB
Description

There are functions to add a format and add/remove a filter, but nothing to remove a format.

#1

webchick - May 25, 2009 - 22:08
Status:active» needs review

Here we go.

Code mostly ripped off from http://api.drupal.org/api/function/filter_admin_delete_submit/6.

AttachmentSize
install-filter-remove-472558-1.patch 1.52 KB

#2

webchick - May 26, 2009 - 23:00

Tagging.

#3

James Andres - June 1, 2009 - 22:32

Seems like a useful function to me. I've re-rolled the patch with a little error checking added. What do you think?

AttachmentSize
install-filter-remove-472558-2.patch 1.56 KB

#4

webchick - June 2, 2009 - 00:33

Looks great!

No time to test it now, but I will try tomorrow.

#5

Boris Mann - July 31, 2009 - 23:08

http://drupal.org/project/drubb needs this. James, can you go ahead and commit, please

#6

James Andres - August 5, 2009 - 22:15
Status:needs review» fixed

Committed.

#7

System Message - August 19, 2009 - 22:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.