*
* @see UnSandboxForm
*/
-
class GrantRoleForm extends ProfileActionForm
{
function __construct($role, $label, $writer, $profile, $r2args)
*
* @return string Name of the action, lowercased.
*/
-
function target()
{
return 'grantrole';
*
* @return string Title of the form, internationalized
*/
-
function title()
{
return $this->label;
*
* @return string description of the form, internationalized
*/
-
function description()
{
+ // TRANS: Description on form for granting a role.
return sprintf(_('Grant this user the "%s" role'), $this->label);
}
}