This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
civicrm/admin/flexmailer - Add settings page
- Loading branch information
Showing
4 changed files
with
64 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
// use CRM_Flexmailer_ExtensionUtil as E; | ||
|
||
/** | ||
* Form controller class | ||
* | ||
* @see https://wiki.civicrm.org/confluence/display/CRMDOC/QuickForm+Reference | ||
*/ | ||
class CRM_Flexmailer_Form_FlexmailerAdmin extends CRM_Admin_Form_Setting { | ||
|
||
protected $_settings = array( | ||
'flexmailer_traditional' => 'Flexmailer Preferences', | ||
); | ||
|
||
/** | ||
* Build the form object. | ||
*/ | ||
public function buildQuickForm() { | ||
parent::buildQuickForm(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{crmScope extensionKey='org.civicrm.flexmailer'} | ||
<div class="crm-block crm-form-block crm-flexmailer-form-block"> | ||
{*<div class="help">*} | ||
{*{ts}...{/ts} {docURL page="Debugging for developers" resource="wiki"}*} | ||
{*</div>*} | ||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | ||
<table class="form-layout"> | ||
<tr class="crm-flexmailer-form-block-flexmailer_traditional"> | ||
<td class="label">{$form.flexmailer_traditional.label}</td> | ||
<td>{$form.flexmailer_traditional.html}<br /> | ||
<span class="description"> | ||
{ts}For greater backward-compatibility, process "<code>traditional</code>" mailings with the CiviMail's hard-coded BAO.{/ts}<br/> | ||
{ts}For greater forward-compatibility, process "<code>traditional</code>" mailings with Flexmailer's extensible pipeline.{/ts}<br/> | ||
</span> | ||
</td> | ||
</tr> | ||
</table> | ||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | ||
</div> | ||
{/crmScope} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<menu> | ||
<item> | ||
<path>civicrm/admin/flexmailer</path> | ||
<page_callback>CRM_Flexmailer_Form_FlexmailerAdmin</page_callback> | ||
<title>Flexmailer Settings</title> | ||
<adminGroup>CiviMail</adminGroup> | ||
<icon>admin/small/Profile.png</icon> | ||
<access_arguments>administer CiviCRM</access_arguments> | ||
</item> | ||
</menu> |