public function buildQuickForm() {
$this->add('select', 'memberdashboard_info_profile_id',
'Member Info Profile', $this->fetchProfiles());
+ $this->add('text', 'memberdashboard_button_static_url',
+ 'Member Button Static Image URL');
$this->add('text', 'memberdashboard_button_api_url',
'Member Button API URL');
$this->add('text', 'memberdashboard_button_api_user',
public function postProcess() {
$params = $this->exportValues();
$profileKey = 'memberdashboard_info_profile_id';
- $urlKey = 'memberdashboard_button_api_url';
+ $staticUrlKey = 'memberdashboard_button_static_url';
+ $apiUrlKey = 'memberdashboard_button_api_url';
$userKey = 'memberdashboard_button_api_user';
$passwordKey = 'memberdashboard_button_api_password';
civicrm_api3('setting', 'create', array(
$profileKey => $params[$profileKey],
- $urlKey => $params[$urlKey],
+ $staticUrlKey => $params[$staticUrlKey],
+ $apiUrlKey => $params[$apiUrlKey],
$userKey => $params[$userKey],
$passwordKey => $params[$passwordKey]
));