- if ($user->hasRight(Right::BACKUPACCOUNT)) {
- $this->elementStart('li');
- $this->element('a',
- array('href' => common_local_url('backupaccount')),
- _('Backup account'));
- $this->elementEnd('li');
- }
- if ($user->hasRight(Right::DELETEACCOUNT)) {
- $this->elementStart('li');
- $this->element('a',
- array('href' => common_local_url('deleteaccount')),
- _('Delete account'));
- $this->elementEnd('li');
- }
- if ($user->hasRight(Right::RESTOREACCOUNT)) {
- $this->elementStart('li');
- $this->element('a',
- array('href' => common_local_url('restoreaccount')),
- _('Restore account'));
- $this->elementEnd('li');
+ $this->elementStart('ul');
+ if (Event::handle('StartProfileSettingsActions', array($this))) {
+ if ($user->hasRight(Right::BACKUPACCOUNT)) {
+ $this->elementStart('li');
+ $this->element('a',
+ array('href' => common_local_url('backupaccount')),
+ _('Backup account'));
+ $this->elementEnd('li');
+ }
+ if ($user->hasRight(Right::DELETEACCOUNT)) {
+ $this->elementStart('li');
+ $this->element('a',
+ array('href' => common_local_url('deleteaccount')),
+ _('Delete account'));
+ $this->elementEnd('li');
+ }
+ if ($user->hasRight(Right::RESTOREACCOUNT)) {
+ $this->elementStart('li');
+ $this->element('a',
+ array('href' => common_local_url('restoreaccount')),
+ _('Restore account'));
+ $this->elementEnd('li');
+ }
+ Event::handle('EndProfileSettingsActions', array($this));