mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-09 03:01:18 +02:00
Namespace all templates Move difflib and BBCodeParser2 to thirdparty Remove deprecated API marked for removal in 4.0
27 lines
692 B
PHP
27 lines
692 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Admin;
|
|
|
|
use SilverStripe\Forms\FormAction;
|
|
|
|
/**
|
|
* A form action to return from geCMSActions or otherwise include in a CMS Edit Form that
|
|
* has the right action name and CSS classes to trigger the AddToCampaignHandler.
|
|
*
|
|
* See SiteTree.php and CMSMain.php for an example of it's use
|
|
*/
|
|
class AddToCampaignHandler_FormAction extends FormAction
|
|
{
|
|
|
|
function __construct()
|
|
{
|
|
parent::__construct('addtocampaign', _t('CAMPAIGNS.ADDTOCAMPAIGN', 'Add to Campaign'));
|
|
|
|
$this->setUseButtonTag(false);
|
|
$this->addExtraClass('add-to-campaign-action');
|
|
$this->setValidationExempt(true);
|
|
$this->addExtraClass('btn');
|
|
$this->addExtraClass('btn-primary');
|
|
}
|
|
}
|