*
* @see UnunsubscribeForm
*/
-
class UnsubscribePeopletagForm extends Form
{
/**
* peopletag for the user to join
*/
-
var $peopletag = null;
/**
* @param HTMLOutputter $out output channel
* @param peopletag $peopletag peopletag to unsubscribe to
*/
-
function __construct($out=null, $peopletag=null)
{
parent::__construct($out);
*
* @return string ID of the form
*/
-
function id()
{
return 'peopletag-unsubscribe-' . $this->peopletag->id;
*
* @return string of the form class
*/
-
function formClass()
{
return 'form_peopletag_unsubscribe';
*
* @return string URL of the action
*/
-
function action()
{
return common_local_url('unsubscribepeopletag',
*
* @return void
*/
-
function formActions()
{
- $this->out->submit('submit', _('Unsubscribe'));
+ // TRANS: Button text for unsubscribing from a people tag.
+ $this->out->submit('submit', _m('BUTTON','Unsubscribe'));
}
}