+
+ $this->elementStart('div', array('id' => 'account_actions',
+ 'class' => 'section'));
+ $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')),
+ // TRANS: Option in profile settings to create a backup of the account of the currently logged in user.
+ _('Backup account'));
+ $this->elementEnd('li');
+ }
+ if ($user->hasRight(Right::DELETEACCOUNT)) {
+ $this->elementStart('li');
+ $this->element('a',
+ array('href' => common_local_url('deleteaccount')),
+ // TRANS: Option in profile settings to delete the account of the currently logged in user.
+ _('Delete account'));
+ $this->elementEnd('li');
+ }
+ if ($user->hasRight(Right::RESTOREACCOUNT)) {
+ $this->elementStart('li');
+ $this->element('a',
+ array('href' => common_local_url('restoreaccount')),
+ // TRANS: Option in profile settings to restore the account of the currently logged in user from a backup.
+ _('Restore account'));
+ $this->elementEnd('li');
+ }
+ Event::handle('EndProfileSettingsActions', array($this));