Apply filter to all elements

I'm trying to apply a filter for the display of all elements in the admin view. I can apply a filter to a specific element, but can't find a way to apply it to all elements. THis works:

class SimplifyEditItemPlugin extends Omeka_Plugin_AbstractPlugin{

protected $_filters = array('removeHTMLCheckbox' => array('ElementInput', 'Item', 'Dublin Core', 'Title'));

public static function removeHTMLCheckbox($components, $args){
$components['html_checkbox'] = null;
return $components;

I would like to write:

protected $_filters = array('removeHTMLCheckbox' => array('ElementInput', 'Item', 'Dublin Core', null));


protected $_filters = array('removeHTMLCheckbox' => array('ElementInput', 'Item', 'Dublin Core'));

But it doesn't seem to work that way. Is there any other filter of anything else one can do. I want to remove the "Use HTML" checkbox under each input field in the edit item form.

Thanks in advance!

We don't have a direct way to do that, but here's the beginnings of a workaround that might work. It 'manually' adds each of the filters in the class's setUp() method.

protected $_filters = array();

    public function setUp()
        $filters = array();
        $filters[] = array('ElementInput', 'Item', 'Dublin Core', 'Title');
        $filters[] = array('ElementInput', 'Item', 'Dublin Core', 'Subject');
        foreach($filters as $filter) {
            add_filter($filter, array($this, 'removeCheckboxes'));

To really make sure it hits all the elements, you'd probably want to get all the ElementSets and Elements programmatically and loop through them all to build up the $filters array.

Thanks Patrick! I fetched all the elements from the DB and applied the filter to each of them, as you suggested.
It's not the most elegant solution, but it works, it doesn't trash the Omeka core code and it seems reasonably fast too.
Anyone who wants to fetch all the elements, here's how to do it:

<br />
$elements = get_db()->getTable('Element')->findAll();<br />