+ function newListItem($profile)
+ {
+ return new SubscribersListItem($profile, $this->owner, $this->action);
+ }
+}
+
+class SubscribersListItem extends SubscriptionListItem
+{
+ function showActions()
+ {
+ $this->startActions();
+ if (Event::handle('StartProfileListItemActionElements', array($this))) {
+ $this->showSubscribeButton();
+ // Relevant code!
+ $this->showBlockForm();
+ Event::handle('EndProfileListItemActionElements', array($this));
+ }
+ $this->endActions();
+ }
+