It looks like the pockets plugin doesn't throw any events, but I could add some. Can you explain a bit more about what you want to do so I can see what can be done?
My Countdown plugin replaces a peice of text with a widget. This works for comments but users have requested it work in more areas, such as those provided by pockets.
Basically, I need to replace some text in a pocket with some content of my own.
Comments
It looks like the pockets plugin doesn't throw any events, but I could add some. Can you explain a bit more about what you want to do so I can see what can be done?
My Countdown plugin replaces a peice of text with a widget. This works for comments but users have requested it work in more areas, such as those provided by pockets.
Basically, I need to replace some text in a pocket with some content of my own.
Does that clarify things?
Gotcha, let me see what I can do.
Thanks!
Okay, I've added an event, but I need to back-port it to the current pockets plugin. You'll be able to use it like this:
public function PocketsPlugin_ToString_Handler($Sender, $Args) { $Pocket = $Args['Pocket']; if ($Pocket->Name == 'Test pocket...') { $Pocket->Body = '<b>Foo</b>'; $Pocket->Format = 'Raw'; } }Do you mind testing this version of the Pockets plugin @matt?
Will do ASAP.