X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm%2FPreferences%2FCampaign.php;h=38496affee233a8691b23a8ae575b0bb0c6dd9f3;hb=945744ee3fb862a227ff65f7a17f2fd5b0d7a675;hp=196a24a75ee6337db167c3a6af83a0bd5fe0c7d3;hpb=0c5302177abdd62e8001e00a493d19dcdabdd2d5;p=civicrm-core.git diff --git a/CRM/Admin/Form/Preferences/Campaign.php b/CRM/Admin/Form/Preferences/Campaign.php index 196a24a75e..38496affee 100644 --- a/CRM/Admin/Form/Preferences/Campaign.php +++ b/CRM/Admin/Form/Preferences/Campaign.php @@ -29,35 +29,16 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2018 - * $Id: Display.php 36505 2011-10-03 14:19:56Z lobo $ - * */ /** - * This class generates form components for the display preferences - * + * This class displays campaign preferences. */ class CRM_Admin_Form_Preferences_Campaign extends CRM_Admin_Form_Preferences { - public function preProcess() { - CRM_Utils_System::setTitle(ts('CiviCampaign Component Settings')); - $this->_varNames = array( - CRM_Core_BAO_Setting::CAMPAIGN_PREFERENCES_NAME => array( - 'tag_unconfirmed' => array( - 'html_type' => 'text', - 'title' => ts('Tag for Unconfirmed Petition Signers'), - 'weight' => 1, - 'description' => ts('If set, new contacts that are created when signing a petition are assigned a tag of this name.'), - ), - 'petition_contacts' => array( - 'html_type' => 'text', - 'title' => ts('Petition Signers Group'), - 'weight' => 2, - 'description' => ts('All contacts that have signed a CiviCampaign petition will be added to this group. The group will be created if it does not exist (it is required for email verification).'), - ), - ), - ); - parent::preProcess(); - } + protected $_settings = [ + 'tag_unconfirmed' => CRM_Core_BAO_Setting::CAMPAIGN_PREFERENCES_NAME, + 'petition_contacts' => CRM_Core_BAO_Setting::CAMPAIGN_PREFERENCES_NAME, + ]; }