silverstripe-framework/admin/code/AddToCampaignHandler_FormAction.php
Damian Mooyman 59efd280ad Fix issues with CMS permission codes
Standardise template locations
Move CMSSettingsController class to SiteConfig module
Fix CMSMenu behaviour for namespaced admin sections
Split classes into one per file
Manual fixes and cleanup
2016-08-17 11:19:14 +12:00

28 lines
654 B
PHP

<?php
/**
* Created by PhpStorm.
* User: dmooyman
* Date: 12/08/16
* Time: 12:15 PM
*/
namespace SilverStripe\Admin;
use 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->addExtraClass('add-to-campaign-action');
$this->setValidationExempt(true);
}
}