Alter the way an element is displayed.
The name of the filter is an array:
array('Display', $recordType, $elementSetName, $elementName);
class MyPlugin extends Omeka_Plugin_AbstractPlugin
{
protected $_filters = array('concealDescription' => array('Display', 'Item', 'Dublin Core', 'Description'));
public function concealDescription($text, $args)
{
//conceal the description to non-logged in users
if(!get_current_user()) {
return str_rot13($text);
}
return $text;
}
}