12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- if (!defined('STATUSNET')) {
- exit(1);
- }
- class RevokeRoleForm extends ProfileActionForm
- {
- function __construct($role, $label, $writer, $profile, $r2args)
- {
- parent::__construct($writer, $profile, $r2args);
- $this->role = $role;
- $this->label = $label;
- }
-
- function target()
- {
- return 'revokerole';
- }
-
- function title()
- {
- return $this->label;
- }
- function formData()
- {
- parent::formData();
- $this->out->hidden('role', $this->role);
- }
-
- function description()
- {
-
- return sprintf(_('Revoke the "%s" role from this user'), $this->label);
- }
- }
|