if ($this->page == 1) {
return sprintf(_('%s subscribers'), $this->user->nickname);
} else {
- return sprintf(_('%s subscribers, page %d'),
+ return sprintf(_('%1$s subscribers, page %2$d'),
$this->user->nickname,
$this->page);
}
function showActions()
{
$this->startActions();
- $this->showSubscribeButton();
- // Relevant code!
- $this->showBlockForm();
+ if (Event::handle('StartProfileListItemActionElements', array($this))) {
+ $this->showSubscribeButton();
+ // Relevant code!
+ $this->showBlockForm();
+ Event::handle('EndProfileListItemActionElements', array($this));
+ }
$this->endActions();
}