mailgunny/CRM/Mailgunny/Form/Settings.php
2019-01-03 11:08:33 +00:00

20 lines
509 B
PHP

<?php
use CRM_Mailgunny_ExtensionUtil as E;
/**
* Form controller class
*
* @see https://wiki.civicrm.org/confluence/display/CRMDOC/QuickForm+Reference
*/
class CRM_Mailgunny_Form_Settings extends CRM_Admin_Form_Setting {
protected $_settings = [
'mailgun_api_key' => 'domain',
//'mailgun_api_key' => CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
];
public function buildQuickForm() {
parent::buildQuickForm();
$this->assign('elementNames', array_keys($this->_settings));
}
}